Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=colin, a=myk
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 $@;
}
}
[% ELSIF error == "extension_invalid" %]
An error occurred processing hook [% name FILTER html %] in
- extension [% extension FILTER html %].
+ extension [% extension FILTER html %]: [% errstr FILTER html %]
[% ELSIF error == "extern_id_conflict" %]
The external ID '[% extern_id FILTER html %]' already exists