diff options
author | Lennart Poettering <lennart@poettering.net> | 2014-11-20 20:59:57 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2014-11-21 00:32:02 +0100 |
commit | 79f34de9fb8e4faa6ed0847b386099a4ba100a8a (patch) | |
tree | 686725e98c76525256d61e5ca4f12afefd7ed1b2 /src | |
parent | 0ca454d474a13f363dcd5ef8dc97ca158569d3ed (diff) |
busctl: use canned error message on parse failure
Diffstat (limited to 'src')
-rw-r--r-- | src/libsystemd/sd-bus/busctl.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/libsystemd/sd-bus/busctl.c b/src/libsystemd/sd-bus/busctl.c index 33be4e8b6a..4da8074375 100644 --- a/src/libsystemd/sd-bus/busctl.c +++ b/src/libsystemd/sd-bus/busctl.c @@ -35,6 +35,7 @@ #include "bus-util.h" #include "bus-dump.h" #include "bus-signature.h" +#include "bus-type.h" #include "busctl-introspect.h" static bool arg_no_pager = false; @@ -1213,10 +1214,8 @@ static int call(sd_bus *bus, char *argv[]) { } r = sd_bus_message_new_method_call(bus, &m, argv[1], argv[2], argv[3], argv[4]); - if (r < 0) { - log_error("Failed to prepare bus message: %s", strerror(-r)); - return r; - } + if (r < 0) + return bus_log_create_error(r); if (!isempty(argv[5])) { char **p; |