diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2023-05-26 15:09:03 +0200 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2023-05-26 15:09:03 +0200 |
commit | f3f8bd6a38eeac3abd703ecc77ccc00609875b98 (patch) | |
tree | 18d068ca0fe4981f15444136c129695263fc2807 /src/shared/tests.c | |
parent | units: order systemd-firstboot after systemd-tmpfiles-setup (diff) | |
download | systemd-f3f8bd6a38eeac3abd703ecc77ccc00609875b98.tar.xz systemd-f3f8bd6a38eeac3abd703ecc77ccc00609875b98.zip |
various: fix error message for bus_wait_for_jobs_new()
As pointed out by Mike Yuan in review of grandparent commit,
bus_wait_for_jobs_new() can also fail for non-oom reasons.
Diffstat (limited to '')
-rw-r--r-- | src/shared/tests.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shared/tests.c b/src/shared/tests.c index 8884c8e90e..ce72be1776 100644 --- a/src/shared/tests.c +++ b/src/shared/tests.c @@ -213,7 +213,7 @@ static int allocate_scope(void) { r = bus_wait_for_jobs_new(bus, &w); if (r < 0) - return log_oom(); + return log_error_errno(r, "Could not watch jobs: %m"); if (asprintf(&scope, "%s-%" PRIx64 ".scope", program_invocation_short_name, random_u64()) < 0) return log_oom(); |