diff options
Diffstat (limited to 'src/core/main.c')
-rw-r--r-- | src/core/main.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/main.c b/src/core/main.c index 3c0f5f9a94..cdd77c1ad9 100644 --- a/src/core/main.c +++ b/src/core/main.c @@ -1297,7 +1297,8 @@ int main(int argc, char *argv[]) { } /* Initialize default unit */ - if (r == set_default_unit(SPECIAL_DEFAULT_TARGET) < 0) { + r = set_default_unit(SPECIAL_DEFAULT_TARGET); + if (r < 0) { log_error("Failed to set default unit %s: %s", SPECIAL_DEFAULT_TARGET, strerror(-r)); goto finish; } |