Compare commits
2 Commits
922ae92aab
...
4b27b605f3
Author | SHA1 | Date |
---|---|---|
Daan De Meyer | 4b27b605f3 | |
Daan De Meyer | ea8c6b4b80 |
|
@ -391,7 +391,7 @@
|
|||
<title>Exit status</title>
|
||||
<para>On success, 0 is returned; otherwise, a non-zero failure
|
||||
code is returned. Not finding any matching core dumps is treated as
|
||||
failure.
|
||||
failure unless JSON output is enabled.
|
||||
</para>
|
||||
</refsect1>
|
||||
|
||||
|
|
|
@ -965,7 +965,9 @@ static int dump_list(int argc, char **argv, void *userdata) {
|
|||
if (!arg_field && n_found <= 0) {
|
||||
if (!arg_quiet)
|
||||
log_notice("No coredumps found.");
|
||||
return -ESRCH;
|
||||
|
||||
if (!sd_json_format_enabled(arg_json_format_flags))
|
||||
return -ESRCH;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue