mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-03-06 12:58:22 +03:00
analyze: fix error handling in one case
(cherry picked from commit 0f849d0af983922e1571b958c9ca42f51e799190) (cherry picked from commit e42f9add21da833ce2d26d4763c022aceec20853) (cherry picked from commit f1d740fdb177b912c8a600cd786258f992313f08) (cherry picked from commit 13cb5986312bf877dd301087f72c13e4b4a620f9)
This commit is contained in:
parent
785af6f916
commit
741c8b763a
@ -1638,7 +1638,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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user