From 65fa65fbf7f66d3d3d4b0ccb0619cc8ec00c5497 Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Sun, 3 Nov 2013 17:57:10 -0600 Subject: in on_device_properties_ready(), improve the g_warning() text to be more useful. --- src/device-provider-upower.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/device-provider-upower.c') 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 -- cgit v1.2.3