Closed
Bug 193985
Opened 22 years ago
Closed 22 years ago
Errors from SendSQL aren't being reported
Categories
(Bugzilla :: Bugzilla-General, defect)
Tracking
()
RESOLVED
FIXED
Bugzilla 2.18
People
(Reporter: bbaetz, Assigned: bbaetz)
Details
Attachments
(1 file)
673 bytes,
patch
|
justdave
:
review+
|
Details | Diff | Splinter Review |
So, we need to hide errors _after_ we execute the statement, not before. 'Oops'
Assignee | ||
Comment 1•22 years ago
|
||
I dropped the return - it always returns 0 (since we die on error instead of
return) and noone was checking it anyway according to a quick egrep
Comment 2•22 years ago
|
||
Comment on attachment 114866 [details] [diff] [review]
fix
That results in a "500 Internal Server Error" if the SQL fails.
It should ThrowCodeError instead.
Attachment #114866 -
Flags: review-
Updated•22 years ago
|
Summary: Errors from SendSQL aren't bing reported → Errors from SendSQL aren't being reported
Assignee | ||
Comment 3•22 years ago
|
||
Comment on attachment 114866 [details] [diff] [review]
fix
We've always done it that way - the old code (ie <=2.16) was just a die.
See _handle_error. We can't fix up the code from teh modules just yet, because
the new CGI::Carp uses CORE:GLOBAL::die, and that needs to be done at compile
time rather than runtime, like the require.
Fixing up all of our error handling is on my todo list somewhere. This patch
doesn't change things fromthat pov, except that now we don't just ignore the
error.
Attachment #114866 -
Flags: review- → review?(justdave)
Assignee | ||
Comment 4•22 years ago
|
||
Hmm. bz-review got told that I denied justdave's request. Known bug?
Comment 5•22 years ago
|
||
Comment on attachment 114866 [details] [diff] [review]
fix
ok, in that case, go for it.
Attachment #114866 -
Flags: review?(justdave) → review+
Updated•22 years ago
|
Flags: approval+
Assignee | ||
Comment 6•22 years ago
|
||
Fixed.
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
Updated•22 years ago
|
Target Milestone: --- → Bugzilla 2.18
Updated•13 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
•