diff options
author | Philippe Nunes <philippe.nunes@linux.intel.com> | 2012-08-22 18:18:18 +0200 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2012-08-22 18:16:15 -0500 |
commit | 666da0ea539a93d4e911e1726e34ee150b00f2f1 (patch) | |
tree | 7910fc4ba888dce7e51b3c76bedfd1397872f63c /src | |
parent | 92cb2fd045de629ed33627c7fa08920333255c2b (diff) | |
download | ofono-666da0ea539a93d4e911e1726e34ee150b00f2f1.tar.bz2 |
call-forwarding: improve error reporting
Report error based on the error reported by the driver.
Diffstat (limited to 'src')
-rw-r--r-- | src/call-forwarding.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/call-forwarding.c b/src/call-forwarding.c index 5acbd67e..91e34c6c 100644 --- a/src/call-forwarding.c +++ b/src/call-forwarding.c @@ -981,9 +981,10 @@ static void ss_set_query_cf_callback(const struct ofono_error *error, int total, DBusMessage *reply; if (error->type != OFONO_ERROR_TYPE_NO_ERROR) { - ofono_error("Setting succeeded, but query failed"); + ofono_error("Query failed with error: %s", + telephony_error_to_str(error)); cf->flags &= ~CALL_FORWARDING_FLAG_CACHED; - reply = __ofono_error_failed(cf->pending); + reply = __ofono_error_from_error(error, cf->pending); __ofono_dbus_pending_reply(&cf->pending, reply); return; } |