Closed Bug 1214076 Opened 9 years ago Closed 9 years ago

TokenServerClient errors can't be JSON.stringify'd

Categories

(Firefox :: Firefox Accounts, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
Firefox 44
Tracking Status
firefox44 --- fixed

People

(Reporter: markh, Assigned: markh)

Details

Attachments

(1 file)

...which results in, eg,

> Exception trying to format object for log message: TypeError: cyclic object value (resource://gre/modules/Log.jsm:670:14) JS Stack trace: ParameterFormatter.prototype

those error objects already have special handling for toString(), so the easiest fix is to extend that same handling to toJSON.
Attachment #8672906 - Flags: review?(rnewman)
Assignee: nobody → markh
Status: NEW → ASSIGNED
Comment on attachment 8672906 [details] [diff] [review]
0002-Bug-XXXXXXX-allow-TokenServerClient-errors-to-be-JSO.patch

Review of attachment 8672906 [details] [diff] [review]:
-----------------------------------------------------------------

LGTM if it works!
Attachment #8672906 - Flags: review?(rnewman) → review+
https://hg.mozilla.org/mozilla-central/rev/9889cd9a69bd
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla44
Product: Core → Firefox
Target Milestone: mozilla44 → Firefox 44
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: