Closed
Bug 887582
Opened 12 years ago
Closed 12 years ago
[AccessFu] have logException support XPC errors
Categories
(Core :: Disability Access APIs, defect)
Core
Disability Access APIs
Tracking
()
RESOLVED
FIXED
mozilla25
People
(Reporter: eeejay, Assigned: eeejay)
Details
Attachments
(1 file)
5.48 KB,
patch
|
yzen
:
review+
|
Details | Diff | Splinter Review |
We could get a full stack trace on those kinds of errors too.
Assignee | ||
Updated•12 years ago
|
Assignee: nobody → eitan
Assignee | ||
Comment 1•12 years ago
|
||
This also cleans up the output a bit and adds a new error message argument to the function. Now errors are pretty to look at and easier to find.
Attachment #768083 -
Flags: review?(yura.zenevich)
Comment 2•12 years ago
|
||
Comment on attachment 768083 [details] [diff] [review]
improve logException
Review of attachment 768083 [details] [diff] [review]:
-----------------------------------------------------------------
r=me with just that one change.
::: accessible/src/jsat/Utils.jsm
@@ +270,5 @@
> this.log.apply(
> this, [this.ERROR].concat(Array.prototype.slice.call(arguments)));
> },
>
> + logException: function logException(aException, aErrorMessage) {
It would be really elegant to use a default argument value here so you could avoid line 276 altogether:
logException: function logException(aException, aErrorMessage = 'An exception has occured') {
...
}
Attachment #768083 -
Flags: review?(yura.zenevich) → review+
Assignee | ||
Comment 3•12 years ago
|
||
Comment 4•12 years ago
|
||
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla25
You need to log in
before you can comment on or make changes to this bug.
Description
•