Closed Bug 849171 Opened 12 years ago Closed 12 years ago

Console.jsm output of errors could be better

Categories

(DevTools :: General, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
Firefox 23

People

(Reporter: jwalker, Assigned: jwalker)

Details

Attachments

(1 file, 1 obsolete file)

Using type==Error is too restrictive. Also the output should be better.
Attached patch upload 1 (obsolete) — Splinter Review
Assignee: nobody → jwalker
Status: NEW → ASSIGNED
Attachment #722712 - Flags: review?(mihai.sucan)
Comment on attachment 722712 [details] [diff] [review] upload 1 Review of attachment 722712 [details] [diff] [review]: ----------------------------------------------------------------- Thanks! I've been meaning to ask for better output for console.error() when errors are given. r+ with one minor change below. ::: toolkit/devtools/Console.jsm @@ +176,5 @@ > i++; > } > } > + else if (type.match("Error$")) { > + reply += " Message: " + aThing.message + "\n"; aThing.message is sometimes undefined, eg. for XPCOM-related exceptions. I learned this the hard way with a cryptic "undefined" error coming from the debugger client. I had to do dump("error " + ex + "\n") to see the actual error. Can you change this to reply += " Message: " + aThing + "\n" ?
Attachment #722712 - Flags: review?(mihai.sucan) → review+
Mihai: are you waiting for me to land this before your patch lands, would you like to incorporate this in your patch, or shall I rebase this on your patch? Happy any way.
(going through bugmail!) (In reply to Joe Walker [:jwalker] from comment #3) > Mihai: are you waiting for me to land this before your patch lands, would > you like to incorporate this in your patch, or shall I rebase this on your > patch? Happy any way. Go ahead and land this patch. Do not wait for my patch. I am happy to rebase my patches on top of this one. Thanks!
Attached patch upload 2Splinter Review
Fixes Mihai's comments. Will land with my next push.
Attachment #722712 - Attachment is obsolete: true
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Whiteboard: [fixed-in-fx-team]
Target Milestone: --- → Firefox 23
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: