projects
/
platform
/
upstream
/
ofono.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
92cb2fd
)
call-forwarding: improve error reporting
author
Philippe Nunes
<philippe.nunes@linux.intel.com>
Wed, 22 Aug 2012 16:18:18 +0000
(18:18 +0200)
committer
Denis Kenzior
<denkenz@gmail.com>
Wed, 22 Aug 2012 23:16:15 +0000
(18:16 -0500)
Report error based on the error reported by the driver.
src/call-forwarding.c
patch
|
blob
|
history
diff --git
a/src/call-forwarding.c
b/src/call-forwarding.c
index
5acbd67
..
91e34c6
100644
(file)
--- 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_f
ailed(
cf->pending);
+ reply = __ofono_error_f
rom_error(error,
cf->pending);
__ofono_dbus_pending_reply(&cf->pending, reply);
return;
}