projects
/
kivitendo-erp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aa7f51d
)
Sinnvollere Fehlermeldungen bei fehlerhaften Flash codes.
author
Sven Schöling
<s.schoeling@linet-services.de>
Wed, 23 Feb 2011 10:33:13 +0000
(11:33 +0100)
committer
Sven Schöling
<s.schoeling@linet-services.de>
Mon, 13 Feb 2012 16:13:00 +0000
(17:13 +0100)
SL/Helper/Flash.pm
patch
|
blob
|
history
diff --git
a/SL/Helper/Flash.pm
b/SL/Helper/Flash.pm
index
f55366c
..
2bbff75
100644
(file)
--- 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;