Blob Blame History Raw
diff -up ConsoleKit-0.2.10/src/ck-manager.c.polkit-result ConsoleKit-0.2.10/src/ck-manager.c
--- ConsoleKit-0.2.10/src/ck-manager.c.polkit-result	2008-04-05 19:01:36.000000000 -0400
+++ ConsoleKit-0.2.10/src/ck-manager.c	2008-04-05 19:01:41.000000000 -0400
@@ -1123,8 +1123,8 @@ _check_polkit_for_action (CkManager     
         if (pk_result != POLKIT_RESULT_YES) {
                 error = g_error_new (CK_MANAGER_ERROR,
                                      CK_MANAGER_ERROR_NOT_PRIVILEGED,
-                                     "Not privileged for action: %s",
-                                     action);
+                                     "Not privileged for action: %s %s",
+                                     action, polkit_result_to_string_representation (pk_result));
                 dbus_error_free (&dbus_error);
                 dbus_g_method_return_error (context, error);
                 g_error_free (error);