From: Djalal Harouni Date: Tue, 17 Dec 2013 22:40:15 +0000 (+0100) Subject: machinectl: show_properties() already logs the error X-Git-Tag: v209~809 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=commitdiff_plain;h=8c841f21f5042b11acc91cc1b039cb162cbbe8f4 machinectl: show_properties() already logs the error --- diff --git a/src/machine/machinectl.c b/src/machine/machinectl.c index fd21a0a81..a2af87c17 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++) {