summaryrefslogtreecommitdiffstats
path: root/Bugzilla/Hook.pm
diff options
context:
space:
mode:
Diffstat (limited to 'Bugzilla/Hook.pm')
-rw-r--r--Bugzilla/Hook.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/Bugzilla/Hook.pm b/Bugzilla/Hook.pm
index 97bec6c5c..9d8059478 100644
--- a/Bugzilla/Hook.pm
+++ b/Bugzilla/Hook.pm
@@ -43,8 +43,8 @@ sub process {
trick_taint($extension);
if (-e $extension.'/code/'.$name.'.pl') {
do($extension.'/code/'.$name.'.pl');
- ThrowCodeError("An error occured processing hook \"$name\" in ".
- "Bugzilla extension \"$extension\": $@") if $@;
+ ThrowCodeError('extension_invalid', {
+ name => $name, extension => $extension }) if $@;
}
}