diff options
Diffstat (limited to 'src/coredump')
-rw-r--r-- | src/coredump/coredumpctl.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/coredump/coredumpctl.c b/src/coredump/coredumpctl.c index 4a25a2fb70..e7d0dd34c0 100644 --- a/src/coredump/coredumpctl.c +++ b/src/coredump/coredumpctl.c @@ -963,10 +963,9 @@ static int dump_list(int argc, char **argv, void *userdata) { } if (!arg_field && n_found <= 0) { - if (!arg_quiet && !sd_json_format_enabled(arg_json_format_flags)) + if (!arg_quiet) log_notice("No coredumps found."); - - return 0; + return -ESRCH; } } |