bus-util: Log more information when connecting to a bus socket fails
Let's log about which bus we're trying to connect to and what transport we're using to do it.
This commit is contained in:
@@ -1299,7 +1299,7 @@ static int run(int argc, char *argv[]) {
|
||||
|
||||
r = bus_connect_transport(arg_transport, arg_host, RUNTIME_SCOPE_SYSTEM, &bus);
|
||||
if (r < 0)
|
||||
return bus_log_connect_error(r, arg_transport);
|
||||
return bus_log_connect_error(r, arg_transport, RUNTIME_SCOPE_SYSTEM);
|
||||
|
||||
if (arg_transport == BUS_TRANSPORT_LOCAL)
|
||||
polkit_agent_open();
|
||||
|
||||
Reference in New Issue
Block a user