mirror of
https://github.com/systemd/systemd.git
synced 2024-11-08 11:27:32 +03:00
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 New Issue
Block a user