summaryrefslogtreecommitdiff
path: root/src/programs
diff options
context:
space:
mode:
authorJan Rybar <jrybar@redhat.com>2018-08-15 18:56:43 +0200
committerJan Rybar <jrybar@redhat.com>2018-08-23 11:47:50 +0000
commit8c1bc8ab182f33a55503d30aa7a4ee96f822d903 (patch)
treec3553ff26bee9ad28d650c485e4b8d207825e0a9 /src/programs
parentb1cc525ff5a50e20c9f921f898f0556e07675e58 (diff)
downloadpolkit-8c1bc8ab182f33a55503d30aa7a4ee96f822d903.tar.gz
Error message raised on every 'systemctl start' in emergency.target
Superuser should know that polkit is not running in emergency.target. If not, basic info with debug sources is offered instead of error message. Other usecases taken into account.
Diffstat (limited to 'src/programs')
-rw-r--r--src/programs/pkttyagent.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/programs/pkttyagent.c b/src/programs/pkttyagent.c
index bfe00bd..3f324b8 100644
--- a/src/programs/pkttyagent.c
+++ b/src/programs/pkttyagent.c
@@ -160,7 +160,8 @@ main (int argc, char *argv[])
authority = polkit_authority_get_sync (NULL /* GCancellable* */, &error);
if (authority == NULL)
{
- g_printerr ("Error getting authority: %s (%s, %d)\n",
+ g_printerr ("Authorization not available. Check if polkit service is running or see debug message for more information.\n");
+ g_debug ("Error getting authority: %s (%s, %d)\n",
error->message, g_quark_to_string (error->domain), error->code);
g_error_free (error);
ret = 127;