diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2023-06-19 13:35:22 +0200 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2023-06-19 13:36:30 +0200 |
commit | b2544bb6e851dabdde106539ba14b86cf4cfa5cb (patch) | |
tree | 7c557cea6c577ec7ef0079656719e4cf20aaa506 /src/machine/machinectl.c | |
parent | shared: improve messages about switch root operations (diff) | |
download | systemd-b2544bb6e851dabdde106539ba14b86cf4cfa5cb.tar.xz systemd-b2544bb6e851dabdde106539ba14b86cf4cfa5cb.zip |
machinectl: fix message
bus_wait_for_jobs_new() can fail for various reasons.
Diffstat (limited to '')
-rw-r--r-- | src/machine/machinectl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/machine/machinectl.c b/src/machine/machinectl.c index 8d7d464a4a..1298c3818e 100644 --- a/src/machine/machinectl.c +++ b/src/machine/machinectl.c @@ -1705,7 +1705,7 @@ static int start_machine(int argc, char *argv[], void *userdata) { r = bus_wait_for_jobs_new(bus, &w); if (r < 0) - return log_oom(); + return log_error_errno(r, "Could not watch jobs: %m"); for (int i = 1; i < argc; i++) { _cleanup_(sd_bus_message_unrefp) sd_bus_message *reply = NULL; |