From e4603df5cf80bbd7a7d51fc66fa6c60e042423bc Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Wed, 23 Sep 2015 19:39:30 +0200 Subject: [PATCH] journal-cat: return a correct error, not -1 --- src/journal/cat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/journal/cat.c b/src/journal/cat.c index 9a85ff1ffd7..77bf7e3981d 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;