summaryrefslogtreecommitdiff
path: root/src/locale
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2013-11-08 19:48:42 +0100
committerLennart Poettering <lennart@poettering.net>2013-11-08 19:48:42 +0100
commit94676f3e9352cbf1f72e0a512ee0d2ed83ff676d (patch)
tree4b73371eb04424b4526a769405bbe22725db3275 /src/locale
parent477def8097245a124f8ff51d17415cf78cde691b (diff)
localectl: port over to bus_log_create_error()
Diffstat (limited to 'src/locale')
-rw-r--r--src/locale/localectl.c6
1 files changed, 3 insertions, 3 deletions
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) {