Closed Bug 887582 Opened 12 years ago Closed 12 years ago

[AccessFu] have logException support XPC errors

Categories

(Core :: Disability Access APIs, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla25

People

(Reporter: eeejay, Assigned: eeejay)

Details

Attachments

(1 file)

We could get a full stack trace on those kinds of errors too.
Assignee: nobody → eitan
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 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+
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.

Attachment

General

Created:
Updated:
Size: