From: Lennart Poettering Date: Thu, 27 Aug 2020 13:46:03 +0000 (+0200) Subject: analyze: fix error handling in one case X-Git-Tag: v247-rc1~335^2~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0f849d0af983922e1571b958c9ca42f51e799190;p=thirdparty%2Fsystemd.git analyze: fix error handling in one case --- diff --git a/src/analyze/analyze.c b/src/analyze/analyze.c index 71bf8808314..f0359e70e07 100644 --- a/src/analyze/analyze.c +++ b/src/analyze/analyze.c @@ -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,