From a32a16cafd772c918f2487423aa3317149bfff75 Mon Sep 17 00:00:00 2001 From: "mkanat%bugzilla.org" <> Date: Tue, 19 Dec 2006 14:43:10 +0000 Subject: Bug 364250: If a hook fails, no error is available for diagnosis Patch By Max Kanat-Alexander r=colin, a=myk --- Bugzilla/Hook.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Bugzilla/Hook.pm') 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 $@; } } -- cgit v1.2.3-24-g4f1b