bus: log message parsing errors everywhere with a generalized bus_log_parse_error()

This commit is contained in:
Lennart Poettering
2013-11-07 21:26:31 +01:00
parent 46e65dcc3a
commit 5b30bef856
9 changed files with 47 additions and 67 deletions
+2 -4
View File
@@ -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,