diff options
author | jocuri%softhome.net <> | 2006-03-01 00:41:04 +0100 |
---|---|---|
committer | jocuri%softhome.net <> | 2006-03-01 00:41:04 +0100 |
commit | 4cde47cdf30a0f3f97c782e8b13cde0149851143 (patch) | |
tree | b7d3903b838aa9d9ea20df6eb144ea6c93329ed9 /Bugzilla | |
parent | 692dcb72ed5ed25d2320a962ab28008a797c5b08 (diff) | |
download | bugzilla-4cde47cdf30a0f3f97c782e8b13cde0149851143.tar.gz bugzilla-4cde47cdf30a0f3f97c782e8b13cde0149851143.tar.xz |
Fix ThrowCodeError calls by giving them an unique ID (tree fix).
Diffstat (limited to 'Bugzilla')
-rw-r--r-- | Bugzilla/Hook.pm | 4 | ||||
-rw-r--r-- | Bugzilla/Template/Plugin/Hook.pm | 2 |
2 files changed, 3 insertions, 3 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 $@; } } diff --git a/Bugzilla/Template/Plugin/Hook.pm b/Bugzilla/Template/Plugin/Hook.pm index 2f94c1dbe..7ff707fc1 100644 --- a/Bugzilla/Template/Plugin/Hook.pm +++ b/Bugzilla/Template/Plugin/Hook.pm @@ -52,7 +52,7 @@ sub process { # sanity check: if (!$template =~ /[\w\.\/\-_\\]+/) { - ThrowCodeError("Template with invalid file name found in hook call: $template"); + ThrowCodeError('template_invalid', { name => $template}); } # also get extension hook files that live in extensions/: |