summaryrefslogtreecommitdiffstats
path: root/src/call-barring.c
diff options
context:
space:
mode:
authorPhilippe Nunes <philippe.nunes@linux.intel.com>2012-08-22 18:18:20 +0200
committerDenis Kenzior <denkenz@gmail.com>2012-08-22 18:17:35 -0500
commit2638408135195fcc2027ec29553aac883002dd66 (patch)
tree60664385a54fb4bf0536eac2652e938fd84c4785 /src/call-barring.c
parent666da0ea539a93d4e911e1726e34ee150b00f2f1 (diff)
downloadofono-2638408135195fcc2027ec29553aac883002dd66.tar.bz2
call-barring: Improve error reporting
Report error based on the error reported by the driver.
Diffstat (limited to 'src/call-barring.c')
-rw-r--r--src/call-barring.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/call-barring.c b/src/call-barring.c
index 53847fb2..68533c2a 100644
--- a/src/call-barring.c
+++ b/src/call-barring.c
@@ -284,14 +284,13 @@ static void cb_ss_query_next_lock_callback(const struct ofono_error *error,
struct ofono_call_barring *cb = data;
if (error->type != OFONO_ERROR_TYPE_NO_ERROR) {
- if (cb->ss_req_type != SS_CONTROL_TYPE_QUERY)
- ofono_error("Enabling/disabling Call Barring via SS "
- "successful, but query was not");
+ ofono_error("Query failed with error: %s",
+ telephony_error_to_str(error));
cb->flags &= ~CALL_BARRING_FLAG_CACHED;
__ofono_dbus_pending_reply(&cb->pending,
- __ofono_error_failed(cb->pending));
+ __ofono_error_from_error(error, cb->pending));
return;
}