Skip to content

Commit

Permalink
Use more considerate language in "no kernels" error
Browse files Browse the repository at this point in the history
Signed-off-by: Michał Górny <[email protected]>
  • Loading branch information
mgorny committed Aug 14, 2024
1 parent e1143a1 commit 55aa5e8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ecleankernel/process.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,8 @@ def get_removal_list(kernels: typing.List[Kernel],
remove_kernels.setdefault(k, []).append('vmlinuz does not exist')
if len(remove_kernels) == len(kernels):
raise SystemError(
'No vmlinuz found. This seems ridiculous, aborting.')
"No vmlinuz found. This is a serious problem, and it would "
"mean removing all remaining files. Aborting.")

if limit is None or limit > 0:
if not destructive:
Expand Down

0 comments on commit 55aa5e8

Please sign in to comment.