aboutsummaryrefslogtreecommitdiffstats
path: root/cli/qmicli-dms.c
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@lanedo.com>2012-05-04 12:40:26 +0200
committerAleksander Morgado <aleksander@lanedo.com>2012-07-03 16:08:50 +0200
commitcab9be9084a4af12d601e09cbe9bb0b3e7f1cc92 (patch)
tree1feff4c8071ec9a9e068317b1372bec8e0d38cba /cli/qmicli-dms.c
parentaddde11c34f353ff209224e9e47b4e229bf774d0 (diff)
downloadexternal_libqmi-cab9be9084a4af12d601e09cbe9bb0b3e7f1cc92.zip
external_libqmi-cab9be9084a4af12d601e09cbe9bb0b3e7f1cc92.tar.gz
external_libqmi-cab9be9084a4af12d601e09cbe9bb0b3e7f1cc92.tar.bz2
dms: QMI protocol error codes are not fatal, they are propagated to the output
Diffstat (limited to 'cli/qmicli-dms.c')
-rw-r--r--cli/qmicli-dms.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/cli/qmicli-dms.c b/cli/qmicli-dms.c
index b9aa076..4f3e2ae 100644
--- a/cli/qmicli-dms.c
+++ b/cli/qmicli-dms.c
@@ -139,8 +139,12 @@ get_ids_ready (QmiClientDms *client,
output = qmi_client_dms_get_ids_finish (client, res, &error);
if (!output) {
- g_printerr ("error: couldn't get IDs: %s\n",
- error->message);
+ g_printerr ("error: operation failed: %s\n", error->message);
+ exit (EXIT_FAILURE);
+ }
+
+ if (!qmi_dms_get_ids_output_get_result (output, &error)) {
+ g_printerr ("error: couldn't get IDs: %s\n", error->message);
exit (EXIT_FAILURE);
}