projects
/
systemd
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6ab20e9
)
analyze: fix error handling in one case
author
Lennart Poettering
<lennart@poettering.net>
Thu, 27 Aug 2020 13:46:03 +0000
(15:46 +0200)
committer
Zbigniew Jędrzejewski-Szmek
<zbyszek@in.waw.pl>
Sun, 20 Sep 2020 10:39:52 +0000
(12:39 +0200)
(cherry picked from commit
0f849d0af983922e1571b958c9ca42f51e799190
)
(cherry picked from commit
e42f9add21da833ce2d26d4763c022aceec20853
)
(cherry picked from commit
f1d740fdb177b912c8a600cd786258f992313f08
)
src/analyze/analyze.c
patch
|
blob
|
history
diff --git
a/src/analyze/analyze.c
b/src/analyze/analyze.c
index 991e61de7e7ff99a90fbc4bd60205379717ed85f..7b84b381f0c6b7d9afdf72d9f9f49f061e7a8436 100644
(file)
--- a/
src/analyze/analyze.c
+++ b/
src/analyze/analyze.c
@@
-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,