Closed
Bug 1035296
Opened 11 years ago
Closed 11 years ago
Make protocol.js pass error messages for unknownErrors
Categories
(DevTools :: Style Editor, defect)
DevTools
Style Editor
Tracking
(Not tracked)
RESOLVED
FIXED
Firefox 34
People
(Reporter: jwalker, Assigned: jwalker)
References
Details
Attachments
(1 file, 2 obsolete files)
1.26 KB,
patch
|
past
:
review+
|
Details | Diff | Splinter Review |
Better error message needed.
Assignee | ||
Updated•11 years ago
|
Blocks: enable-csscoverage
Assignee | ||
Comment 1•11 years ago
|
||
Assignee: nobody → jwalker
Status: NEW → ASSIGNED
Assignee | ||
Comment 2•11 years ago
|
||
Summary: CSS Coverage gives 'unknownError' when there is no coverage data → Make protocol.js pass error messages for unknownErrors
Assignee | ||
Comment 3•11 years ago
|
||
In an actor throws an exception, protocol.js catches it and passes a packet like this:
{
error: "unknownError",
message: ex.message
}
And then in the client, the promise was resolved like this:
if (packet.error) reject(packet.error);
Which means that we lose everything there is to know about the original exception. This change passes on the error message, which is particularly useful to GCLI which doesn't then have to have some magic to work out what might have gone wrong.
Assignee | ||
Updated•11 years ago
|
Attachment #8454375 -
Flags: review?(past)
Updated•11 years ago
|
Attachment #8454375 -
Flags: review?(past) → review+
Assignee | ||
Updated•11 years ago
|
Keywords: checkin-needed
Comment 4•11 years ago
|
||
Keywords: checkin-needed
Whiteboard: [fixed-in-fx-team]
Comment 5•11 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Whiteboard: [fixed-in-fx-team]
Target Milestone: --- → Firefox 33
Comment 6•11 years ago
|
||
Backed out per the discussion in bug 1038279. Sorry Joe, this work is very righteous :(
https://hg.mozilla.org/mozilla-central/rev/31c5d0a5115d
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Target Milestone: Firefox 33 → ---
Assignee | ||
Comment 7•11 years ago
|
||
Clean on try: https://tbpl.mozilla.org/?tree=Try&rev=6d98639e8e78
Doesn't seems to throw up the false +ves that the previous patch did
Attachment #8454375 -
Attachment is obsolete: true
Assignee | ||
Comment 8•11 years ago
|
||
![]() |
||
Comment 9•11 years ago
|
||
Noticed while checking recent changes that rev 65ae48644b2e seem to be a no-op ('message' is not used anywhere). Something must be missing from the patch, probably
- deferred.reject(packet.error);
+ deferred.reject(message);
Assignee | ||
Comment 10•11 years ago
|
||
Thanks Sami, well spotted.
Panos, this also removes the 'Protocol error' part in GCLI.
Attachment #8465372 -
Attachment is obsolete: true
Attachment #8465517 -
Flags: review?(past)
Updated•11 years ago
|
Attachment #8465517 -
Flags: review?(past) → review+
Assignee | ||
Comment 11•11 years ago
|
||
Comment 12•11 years ago
|
||
Backed out for mochitest-dt orange.
https://hg.mozilla.org/integration/fx-team/rev/1abe173b2c8b
https://tbpl.mozilla.org/php/getParsedLog.php?id=44982654&tree=Fx-Team
Comment 13•11 years ago
|
||
Assignee | ||
Comment 14•11 years ago
|
||
Comment 15•11 years ago
|
||
Status: REOPENED → RESOLVED
Closed: 11 years ago → 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 34
Updated•11 years ago
|
QA Whiteboard: [qa-]
Updated•7 years ago
|
Product: Firefox → DevTools
You need to log in
before you can comment on or make changes to this bug.
Description
•