1
0
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:
Lennart Poettering 2015-09-23 19:39:30 +02:00
parent 4a9b1dd4ad
commit e4603df5cf

View File

@ -92,7 +92,7 @@ static int parse_argv(int argc, char *argv[]) {
arg_priority = log_level_from_string(optarg); arg_priority = log_level_from_string(optarg);
if (arg_priority < 0) { if (arg_priority < 0) {
log_error("Failed to parse priority value."); log_error("Failed to parse priority value.");
return arg_priority; return -EINVAL;
} }
break; break;