diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2021-02-09 16:06:36 +0100 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2021-02-10 14:46:59 +0100 |
commit | 7211c853c26554ad1f58c2cfa1d5a0bfc059bf15 (patch) | |
tree | 8ec5ffd55875cf64df5df97d7cf10c6449d23fea /src/analyze | |
parent | Return -EINVAL from _from_string() functions (diff) | |
download | systemd-7211c853c26554ad1f58c2cfa1d5a0bfc059bf15.tar.xz systemd-7211c853c26554ad1f58c2cfa1d5a0bfc059bf15.zip |
tree-wide: propagate error code from _from_string() functions
Now that we know we have something useful, no need to make an answer up.
Diffstat (limited to 'src/analyze')
-rw-r--r-- | src/analyze/analyze.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/analyze/analyze.c b/src/analyze/analyze.c index 3b953ac472..c25d11e0de 100644 --- a/src/analyze/analyze.c +++ b/src/analyze/analyze.c @@ -1574,7 +1574,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(SYNTHETIC_ERRNO(EINVAL), "Invalid exit status \"%s\".", argv[i]); + return log_error_errno(status, "Invalid exit status \"%s\".", argv[i]); assert(status >= 0 && (size_t) status < ELEMENTSOF(exit_status_mappings)); r = table_add_many(table, |