From: Thomas Lamprecht Date: Tue, 30 Mar 2021 09:09:14 +0000 (+0200) Subject: quarantine/content: better error message for internal error X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=cb6137e604de545a0fed8c8cc71b223f835f016d;p=pmg-api.git quarantine/content: better error message for internal error should really not happen, but if (e.g., enum gets adaped) it is good to know the actual value triggering it. Signed-off-by: Thomas Lamprecht --- diff --git a/src/PMG/API2/Quarantine.pm b/src/PMG/API2/Quarantine.pm index d845a15..848ae8e 100644 --- a/src/PMG/API2/Quarantine.pm +++ b/src/PMG/API2/Quarantine.pm @@ -1235,7 +1235,7 @@ __PACKAGE__->register_method ({ } elsif ($action eq 'delete') { PMG::Quarantine::delete_quarantined_mail($dbh, $ref); } else { - die "internal error"; # should not be reached + die "internal error, unknown action '$action'"; # should not be reached } }