From 11ddb6f48e367ae4b51c31d199b28f5be041a301 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Fri, 28 Jun 2013 18:37:15 +0200 Subject: main: fix loading of default target --- src/core/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/core/main.c b/src/core/main.c index 102cc3b315..2bd1efd5d0 100644 --- a/src/core/main.c +++ b/src/core/main.c @@ -1679,7 +1679,7 @@ int main(int argc, char *argv[]) { log_error("Failed to load rescue target: %s", bus_error(&error, r)); dbus_error_free(&error); goto finish; - } else if (target->load_state == UNIT_ERROR || target->load_state == UNIT_ERROR) { + } else if (target->load_state == UNIT_ERROR || target->load_state == UNIT_NOT_FOUND) { log_error("Failed to load rescue target: %s", strerror(-target->load_error)); goto finish; } else if (target->load_state == UNIT_MASKED) { -- cgit v1.2.3-54-g00ecf