Closed
Bug 849171
Opened 12 years ago
Closed 12 years ago
Console.jsm output of errors could be better
Categories
(DevTools :: General, defect)
DevTools
General
Tracking
(Not tracked)
RESOLVED
FIXED
Firefox 23
People
(Reporter: jwalker, Assigned: jwalker)
Details
Attachments
(1 file, 1 obsolete file)
1.23 KB,
patch
|
Details | Diff | Splinter Review |
Using type==Error is too restrictive.
Also the output should be better.
Assignee | ||
Comment 1•12 years ago
|
||
Comment 2•12 years ago
|
||
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+
Assignee | ||
Comment 3•12 years ago
|
||
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.
Comment 4•12 years ago
|
||
(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!
Assignee | ||
Comment 5•12 years ago
|
||
Fixes Mihai's comments. Will land with my next push.
Attachment #722712 -
Attachment is obsolete: true
Assignee | ||
Comment 6•12 years ago
|
||
https://tbpl.mozilla.org/?tree=Fx-Team&rev=9ae9cc383d0f
https://hg.mozilla.org/integration/fx-team/rev/0913fd986ec1
Whiteboard: [fixed-in-fx-team]
Assignee | ||
Comment 7•12 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Whiteboard: [fixed-in-fx-team]
Target Milestone: --- → Firefox 23
Updated•7 years ago
|
Product: Firefox → DevTools
You need to log in
before you can comment on or make changes to this bug.
Description
•