]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
sd-bus: Improve (sd-buscntr) error logging 20486/head
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Thu, 19 Aug 2021 14:09:44 +0000 (15:09 +0100)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Thu, 19 Aug 2021 14:47:27 +0000 (15:47 +0100)
We're only doing one thing in the child process which is connecting
to the D-Bus socket so let's mention that in the error message when
something goes wrong instead of having a generic error message.

src/libsystemd/sd-bus/bus-container.c

index 17bbca7deb3a684c943853e9317c40fb7c6fa07c..b3c0279c0bd8a49a614d81d91a8f24257117e152 100644 (file)
@@ -94,7 +94,7 @@ int bus_container_connect_socket(sd_bus *b) {
                         return 1;
 
                 if (error_buf > 0)
-                        return log_debug_errno(error_buf, "Got error from (sd-buscntr): %m");
+                        return log_debug_errno(error_buf, "(sd-buscntr) failed to connect to D-Bus socket: %m");
         }
 
         if (nonzero_exit_status)