diff options
author | Lennart Poettering <lennart@poettering.net> | 2013-11-07 21:26:31 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2013-11-07 21:26:31 +0100 |
commit | 5b30bef856e89a571df57b7b953e9a1409d9aced (patch) | |
tree | 815d8648bf7b59a35c1cda35174b8b1e08cac323 /src/nspawn | |
parent | 46e65dcc3a522b5e992e165b5e61d14254026859 (diff) |
bus: log message parsing errors everywhere with a generalized bus_log_parse_error()
Diffstat (limited to 'src/nspawn')
-rw-r--r-- | src/nspawn/nspawn.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/nspawn/nspawn.c b/src/nspawn/nspawn.c index 34a0dafa64..06d627c0a9 100644 --- a/src/nspawn/nspawn.c +++ b/src/nspawn/nspawn.c @@ -990,10 +990,8 @@ static int terminate_machine(pid_t pid) { } r = sd_bus_message_read(reply, "o", &path); - if (r < 0) { - log_error("Failed to parse GetMachineByPID() reply: %s", bus_error_message(&error, r)); - return r; - } + if (r < 0) + return bus_log_parse_error(r); r = sd_bus_call_method( bus, |