From: Sven Schöling Date: Wed, 23 Feb 2011 10:33:13 +0000 (+0100) Subject: Sinnvollere Fehlermeldungen bei fehlerhaften Flash codes. X-Git-Tag: release-2.7.0beta2~5^2~11 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=45c42be0153b638549e1098fc0ff4af01c3172e5;p=kivitendo-erp.git Sinnvollere Fehlermeldungen bei fehlerhaften Flash codes. --- diff --git a/SL/Helper/Flash.pm b/SL/Helper/Flash.pm index f55366c17..2bbff75b1 100644 --- a/SL/Helper/Flash.pm +++ b/SL/Helper/Flash.pm @@ -46,7 +46,10 @@ sub _store_flash { sub _check_category { my ($c) = @_; return $valid_categories{$c} - || die 'invalid category for flash'; + || do { + require Carp; + croak("invalid category '$c' for flash"); + }; } 1;