journal-cat: return a correct error, not -1
This commit is contained in:
parent
4a9b1dd4ad
commit
e4603df5cf
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue