chiark / gitweb /
core/manager: remove infinite loop
[elogind.git] / src / timedate / timedatectl.c
index 6e0bc3c..9b81513 100644 (file)
@@ -214,8 +214,10 @@ static int show_status(sd_bus *bus, char **args, unsigned n) {
                                    "/org/freedesktop/timedate1",
                                    map,
                                    &info);
-        if (r < 0)
+        if (r < 0) {
+                log_error("Failed to query server: %s", strerror(-r));
                 goto fail;
+        }
 
         print_status_info(&info);