aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2013-11-03 17:57:10 -0600
committerCharles Kerr <charles.kerr@canonical.com>2013-11-03 17:57:10 -0600
commit65fa65fbf7f66d3d3d4b0ccb0619cc8ec00c5497 (patch)
tree18f587715c916ce7e50f8017dc9edfa753693b3c /src
parentadfd4c6bcdba7560635e9f57e5be00651073955a (diff)
downloadayatana-indicator-power-65fa65fbf7f66d3d3d4b0ccb0619cc8ec00c5497.tar.gz
ayatana-indicator-power-65fa65fbf7f66d3d3d4b0ccb0619cc8ec00c5497.tar.bz2
ayatana-indicator-power-65fa65fbf7f66d3d3d4b0ccb0619cc8ec00c5497.zip
in on_device_properties_ready(), improve the g_warning() text to be more useful.
Diffstat (limited to 'src')
-rw-r--r--src/device-provider-upower.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/device-provider-upower.c b/src/device-provider-upower.c
index 4014853..cc4adf5 100644
--- a/src/device-provider-upower.c
+++ b/src/device-provider-upower.c
@@ -90,7 +90,9 @@ on_device_properties_ready (GObject * o, GAsyncResult * res, gpointer gdata)
if (error != NULL)
{
if (!g_error_matches (error, G_IO_ERROR, G_IO_ERROR_CANCELLED))
- g_warning ("Error acquiring bus: %s", error->message);
+ g_warning ("Error getting properties for UPower device '%s': %s",
+ data->path, error->message);
+
g_error_free (error);
}
else