From 8c841f21f5042b11acc91cc1b039cb162cbbe8f4 Mon Sep 17 00:00:00 2001 From: Djalal Harouni Date: Tue, 17 Dec 2013 23:40:15 +0100 Subject: machinectl: show_properties() already logs the error --- src/machine/machinectl.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/machine/machinectl.c b/src/machine/machinectl.c index fd21a0a815..a2af87c17d 100644 --- a/src/machine/machinectl.c +++ b/src/machine/machinectl.c @@ -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++) { -- cgit v1.2.3-54-g00ecf