Closed
Bug 696483
Opened 13 years ago
Closed 13 years ago
missing reporterror
Categories
(Toolkit :: Form Manager, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: espindola, Assigned: espindola)
Details
Attachments
(1 file, 1 obsolete file)
1.42 KB,
patch
|
mak
:
review+
|
Details | Diff | Splinter Review |
In nsFormHistory.js we have try { this.dbConnection.close(); } catch(e) {} this should reportError.
Assignee | ||
Comment 1•13 years ago
|
||
The only error I have seen in this part of the code was the connection never being created, so this patch replaces the try/catch with an if. https://tbpl.mozilla.org/?tree=Try&rev=e0b356c9e3aa
Comment 2•13 years ago
|
||
Comment on attachment 581607 [details] [diff] [review] Don't suppress all exceptions. Review of attachment 581607 [details] [diff] [review]: ----------------------------------------------------------------- If close() throws, the next call to remove() will fail (since the database file is in use) and we won't be able to proceed with dbOpen() and dbInit() regardless. The problem is whether the exception will be able to make the Error Console at least, or if it will just be hidden and unreported. So, just in case, we may still want to also catch and reportError it, also keeping the if condition that looks correct.
Assignee | ||
Comment 3•13 years ago
|
||
https://tbpl.mozilla.org/?tree=Try&rev=87d92d608825
Attachment #581607 -
Attachment is obsolete: true
Attachment #581607 -
Flags: review?(mak77)
Attachment #581626 -
Flags: review?(mak77)
Updated•13 years ago
|
Attachment #581626 -
Flags: review?(mak77) → review+
Assignee | ||
Comment 4•13 years ago
|
||
Fixed https://tbpl.mozilla.org/?rev=a2928a1ffde5
Assignee | ||
Updated•13 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•