summaryrefslogtreecommitdiff
path: root/src/locale/localectl.c
diff options
context:
space:
mode:
authorDjalal Harouni <tixxdz@opendz.org>2013-12-19 11:14:33 +0100
committerLennart Poettering <lennart@poettering.net>2014-02-14 02:19:42 +0100
commit6046278f405b3ebaf84fcf17f6e834c4c4bd6a42 (patch)
treebc87a6ca0b881a88aa4a8200ac323dc22df84119 /src/locale/localectl.c
parent3a33e61d2df24b6b2dec6176930562f93b3c4347 (diff)
localectl: log error if bus_map_all_properties() fails
Diffstat (limited to 'src/locale/localectl.c')
-rw-r--r--src/locale/localectl.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/locale/localectl.c b/src/locale/localectl.c
index b0abe7b051..5929169fe5 100644
--- a/src/locale/localectl.c
+++ b/src/locale/localectl.c
@@ -128,8 +128,10 @@ static int show_status(sd_bus *bus, char **args, unsigned n) {
"/org/freedesktop/locale1",
map,
&info);
- if (r < 0)
+ if (r < 0) {
+ log_error("Could not get properties: %s", strerror(-r));
goto fail;
+ }
print_status_info(&info);