From e4603df5cf80bbd7a7d51fc66fa6c60e042423bc Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Wed, 23 Sep 2015 19:39:30 +0200 Subject: journal-cat: return a correct error, not -1 --- src/journal/cat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/journal') 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; -- cgit v1.2.3-54-g00ecf