diff options
author | Philippe Nunes <philippe.nunes@linux.intel.com> | 2012-05-30 15:53:10 +0200 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2012-05-30 09:05:39 -0500 |
commit | c935817653fddbc0be6d87005d1fe92eb67d3142 (patch) | |
tree | 627a8cf35a7df6ef5e810aa01a8b20768eac4f63 /src/call-barring.c | |
parent | 07a2e7028367a22fbebb073dabd25d605b04438b (diff) | |
download | ofono-c935817653fddbc0be6d87005d1fe92eb67d3142.tar.gz |
call-barring: Return specific errors for SS
Diffstat (limited to 'src/call-barring.c')
-rw-r--r-- | src/call-barring.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/call-barring.c b/src/call-barring.c index ddf4c738..53847fb2 100644 --- a/src/call-barring.c +++ b/src/call-barring.c @@ -323,9 +323,10 @@ static void cb_ss_set_lock_callback(const struct ofono_error *error, struct ofono_call_barring *cb = data; if (error->type != OFONO_ERROR_TYPE_NO_ERROR) { - DBG("Enabling/disabling Call Barring via SS failed"); + DBG("Enabling/disabling Call Barring via SS failed with err:%s", + telephony_error_to_str(error)); __ofono_dbus_pending_reply(&cb->pending, - __ofono_error_failed(cb->pending)); + __ofono_error_from_error(error, cb->pending)); return; } @@ -485,8 +486,9 @@ static void cb_set_passwd_callback(const struct ofono_error *error, void *data) if (error->type == OFONO_ERROR_TYPE_NO_ERROR) reply = dbus_message_new_method_return(cb->pending); else { - reply = __ofono_error_failed(cb->pending); - DBG("Changing Call Barring password via SS failed"); + DBG("Changing Call Barring password via SS failed with err: %s", + telephony_error_to_str(error)); + reply = __ofono_error_from_error(error, cb->pending); } __ofono_dbus_pending_reply(&cb->pending, reply); |