From 94676f3e9352cbf1f72e0a512ee0d2ed83ff676d Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Fri, 8 Nov 2013 19:48:42 +0100 Subject: localectl: port over to bus_log_create_error() --- src/locale/localectl.c | 6 +++--- src/run/run.c | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/locale/localectl.c b/src/locale/localectl.c index 31deb674dc..ed66668f79 100644 --- a/src/locale/localectl.c +++ b/src/locale/localectl.c @@ -154,15 +154,15 @@ static int set_locale(sd_bus *bus, char **args, unsigned n) { "org.freedesktop.locale1", "SetLocale", &m); if (r < 0) - return r; + return bus_log_create_error(r); r = sd_bus_message_append_strv(m, args + 1); if (r < 0) - return r; + return bus_log_create_error(r); r = sd_bus_message_append(m, "b", arg_ask_password); if (r < 0) - return r; + return bus_log_create_error(r); r = sd_bus_send_with_reply_and_block(bus, m, 0, &error, NULL); if (r < 0) { diff --git a/src/run/run.c b/src/run/run.c index 3fb72e6103..f4c7005089 100644 --- a/src/run/run.c +++ b/src/run/run.c @@ -28,6 +28,7 @@ #include "build.h" #include "unit-name.h" #include "path-util.h" +#include "bus-error.h" static bool arg_scope = false; static bool arg_remain_after_exit = false; -- cgit v1.2.3-54-g00ecf