Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
bugzilla
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
bugzilla
Commits
a32a16ca
Commit
a32a16ca
authored
Dec 19, 2006
by
mkanat%bugzilla.org
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 364250: If a hook fails, no error is available for diagnosis
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=colin, a=myk
parent
bffa52bd
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
Hook.pm
Bugzilla/Hook.pm
+2
-2
code-error.html.tmpl
template/en/default/global/code-error.html.tmpl
+1
-1
No files found.
Bugzilla/Hook.pm
View file @
a32a16ca
...
...
@@ -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
$@
;
}
}
...
...
template/en/default/global/code-error.html.tmpl
View file @
a32a16ca
...
...
@@ -139,7 +139,7 @@
[% 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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment