summaryrefslogtreecommitdiffstats
path: root/Bugzilla
diff options
context:
space:
mode:
authormkanat%bugzilla.org <>2006-12-19 15:43:10 +0100
committermkanat%bugzilla.org <>2006-12-19 15:43:10 +0100
commita32a16cafd772c918f2487423aa3317149bfff75 (patch)
tree5ca78e510ad53e140b05da8b8283198e8ee09cf5 /Bugzilla
parentbffa52bd4899458aca4456717dd11786cc585640 (diff)
downloadbugzilla-a32a16cafd772c918f2487423aa3317149bfff75.tar.gz
bugzilla-a32a16cafd772c918f2487423aa3317149bfff75.tar.xz
Bug 364250: If a hook fails, no error is available for diagnosis
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=colin, a=myk
Diffstat (limited to 'Bugzilla')
-rw-r--r--Bugzilla/Hook.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/Bugzilla/Hook.pm b/Bugzilla/Hook.pm
index f8167cd65..3e784bd0e 100644
--- a/Bugzilla/Hook.pm
+++ b/Bugzilla/Hook.pm
@@ -44,8 +44,8 @@ sub process {
if (-e $extension.'/code/'.$name.'.pl') {
Bugzilla->hook_args($args);
do($extension.'/code/'.$name.'.pl');
- ThrowCodeError('extension_invalid', {
- name => $name, extension => $extension }) if $@;
+ ThrowCodeError('extension_invalid',
+ { errstr => $@, name => $name, extension => $extension }) if $@;
}
}