summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/journal/cat.c2
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;