Closed
Bug 140006
Opened 22 years ago
Closed 22 years ago
ThrowTemplateError should try the error template first
Categories
(Bugzilla :: Bugzilla-General, defect)
Tracking
()
RESOLVED
FIXED
Bugzilla 2.16
People
(Reporter: bbaetz, Assigned: gerv)
Details
(Keywords: polish)
Attachments
(1 file)
1.87 KB,
patch
|
bbaetz
:
review+
justdave
:
review+
|
Details | Diff | Splinter Review |
Currently, ThrowTemplateError assuems that we're doomed. This means that we get a plain error no matter what went wrong. We should try to use the error template, and give a nicely formatted error, and only fall back to untemplated output as a last resort.
Assignee | ||
Comment 1•22 years ago
|
||
Yep, true. I'll whip up a patch this evening. Gerv
Target Milestone: --- → Bugzilla 2.16
Assignee | ||
Comment 2•22 years ago
|
||
It's not even as big as it looks; I just wrapped the old print statements in an attempt to use the code-error.html.tmpl template, and recorded both errors in the printed error message. Gerv
Assignee | ||
Updated•22 years ago
|
Reporter | ||
Comment 3•22 years ago
|
||
Comment on attachment 80987 [details] [diff] [review] Patch v.1 diff -w is often helpful for patches with large whitespace changes. r=bbaetz
Attachment #80987 -
Flags: review+
Comment 4•22 years ago
|
||
Comment on attachment 80987 [details] [diff] [review] Patch v.1 r= justdave
Attachment #80987 -
Flags: review+
Assignee | ||
Comment 5•22 years ago
|
||
Fixed. Checking in CGI.pl; /cvsroot/mozilla/webtools/bugzilla/CGI.pl,v <-- CGI.pl new revision: 1.150; previous revision: 1.149 done Gerv
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
Updated•11 years ago
|
QA Contact: matty_is_a_geek → default-qa
You need to log in
before you can comment on or make changes to this bug.
Description
•