analyze: fix error handling in one case

This commit is contained in:
Lennart Poettering 2020-08-27 15:46:03 +02:00
parent 524bdc95e7
commit 0f849d0af9
1 changed files with 1 additions and 1 deletions

View File

@ -1576,7 +1576,7 @@ static int dump_exit_status(int argc, char *argv[], void *userdata) {
status = exit_status_from_string(argv[i]);
if (status < 0)
return log_error_errno(r, "Invalid exit status \"%s\": %m", argv[i]);
return log_error_errno(SYNTHETIC_ERRNO(EINVAL), "Invalid exit status \"%s\".", argv[i]);
assert(status >= 0 && (size_t) status < ELEMENTSOF(exit_status_mappings));
r = table_add_many(table,