diff options
author | Richard Hughes <richard@hughsie.com> | 2009-04-01 09:15:04 +0100 |
---|---|---|
committer | Richard Hughes <richard@hughsie.com> | 2009-04-01 09:15:04 +0100 |
commit | 90bc938bc4adc6195b6a5f38c44a0cdf04b949ff (patch) | |
tree | 58591555e22b8a2497041fe9b51dc7ffafa4cf41 /tools | |
parent | 1faf14cdccf3880b944630c1ea797b302b20b06a (diff) | |
download | upower-90bc938bc4adc6195b6a5f38c44a0cdf04b949ff.tar.gz |
trivial: print the error message from dkp-tool
Diffstat (limited to 'tools')
-rw-r--r-- | tools/dkp-tool.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tools/dkp-tool.c b/tools/dkp-tool.c index b399e9c..753354a 100644 --- a/tools/dkp-tool.c +++ b/tools/dkp-tool.c @@ -193,9 +193,11 @@ main (int argc, char **argv) g_ptr_array_free (array, TRUE); } else if (opt_enumerate || opt_dump) { GPtrArray *devices; - devices = dkp_client_enumerate_devices (client, NULL); - if (devices == NULL) + devices = dkp_client_enumerate_devices (client, &error); + if (devices == NULL) { + egg_warning ("failed to enumerate: %s", error->message); goto out; + } for (i=0; i < devices->len; i++) { device = (DkpDevice*) g_ptr_array_index (devices, i); if (opt_enumerate) { |