chiark / gitweb /
machinectl: show_properties() already logs the error
authorDjalal Harouni <tixxdz@opendz.org>
Tue, 17 Dec 2013 22:40:15 +0000 (23:40 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 19 Dec 2013 04:58:23 +0000 (23:58 -0500)
src/machine/machinectl.c

index fd21a0a..a2af87c 100644 (file)
@@ -304,10 +304,8 @@ static int show(sd_bus *bus, char **args, unsigned n) {
                 /* If no argument is specified, inspect the manager
                  * itself */
                 r = show_properties(bus, "/org/freedesktop/machine1", &new_line);
-                if (r < 0) {
-                        log_error("Failed to query properties: %s", strerror(-r));
+                if (r < 0)
                         return r;
-                }
         }
 
         for (i = 1; i < n; i++) {