]> git.proxmox.com Git - pmg-api.git/commitdiff
quarantine/content: better error message for internal error
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 30 Mar 2021 09:09:14 +0000 (11:09 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 30 Mar 2021 09:09:15 +0000 (11:09 +0200)
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 <t.lamprecht@proxmox.com>
src/PMG/API2/Quarantine.pm

index d845a1509b889c3eadce8f9315beb6bc8da9bda5..848ae8e6962f81e4ca60815e2279c0fe7ec55923 100644 (file)
@@ -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
            }
        }