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