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 fd21a0a815709e96d706506aa102338e2d4bd05d..a2af87c17d2ccea40f9e76cab6375e7978a52d25 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 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;
                         return r;
-                }
         }
 
         for (i = 1; i < n; i++) {
         }
 
         for (i = 1; i < n; i++) {