Skip to content

Commit

Permalink
machinectl: fix message
Browse files Browse the repository at this point in the history
bus_wait_for_jobs_new() can fail for various reasons.

(cherry picked from commit b2544bb)
(cherry picked from commit 620cab2)
  • Loading branch information
keszybz authored and bluca committed Jul 8, 2023
1 parent 36ce0ed commit 6272d05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/machine/machinectl.c
Original file line number Diff line number Diff line change
Expand Up @@ -1547,7 +1547,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;
Expand Down

0 comments on commit 6272d05

Please sign in to comment.