Closed Bug 1698554 Opened 4 years ago Closed 3 years ago

Log strings and objects thrown from actor methods

Categories

(DevTools :: Framework, enhancement)

enhancement

Tracking

(firefox88 fixed)

RESOLVED FIXED
88 Branch
Tracking Status
firefox88 --- fixed

People

(Reporter: ochameau, Assigned: ochameau)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

While working on bug 1631451 I saw that actor methods throwing a string instead of an error object were poorly logged. We weren't diplaying anywhere that string.
We should improve that in order to make that easier to debug.

Summary: Log strings throws from actor methods → Log strings and objects thrown from actor methods

Like BrowsingContextTargetActor.detach which was throwing { error: wrongState }
and we were logging "(void 0)" because error.message was undefined,
while error was the thrown JS object.

Pushed by apoirot@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/3ea3c488ff31
[devtools] Improve error logging when a request fails with a custom exception. r=nchevobbe
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 88 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: