diff options
author | Lennart Poettering <lennart@poettering.net> | 2015-09-23 19:39:30 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2015-09-29 21:55:51 +0200 |
commit | e4603df5cf80bbd7a7d51fc66fa6c60e042423bc (patch) | |
tree | 2ea1c74ccd1bef675946367bf0ea0c60f3b7c87d | |
parent | 4a9b1dd4ad38e54e6b7df99fe3366ceddd1fa572 (diff) |
journal-cat: return a correct error, not -1
-rw-r--r-- | src/journal/cat.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/journal/cat.c b/src/journal/cat.c index 9a85ff1ffd..77bf7e3981 100644 --- a/src/journal/cat.c +++ b/src/journal/cat.c @@ -92,7 +92,7 @@ static int parse_argv(int argc, char *argv[]) { arg_priority = log_level_from_string(optarg); if (arg_priority < 0) { log_error("Failed to parse priority value."); - return arg_priority; + return -EINVAL; } break; |