From 7211c853c26554ad1f58c2cfa1d5a0bfc059bf15 Mon Sep 17 00:00:00 2001 From: Zbigniew Jędrzejewski-Szmek Date: Tue, 9 Feb 2021 16:06:36 +0100 Subject: tree-wide: propagate error code from _from_string() functions Now that we know we have something useful, no need to make an answer up. --- src/analyze/analyze.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/analyze') 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, -- cgit v1.2.3