Closed Bug 1173558 Opened 9 years ago Closed 9 years ago

DevToolsUtils.safeErrorString should have a better fallback

Categories

(DevTools :: General, defect)

defect
Not set
normal

Tracking

(firefox41 fixed)

RESOLVED FIXED
Firefox 41
Tracking Status
firefox41 --- fixed

People

(Reporter: fitzgen, Assigned: fitzgen)

Details

Attachments

(1 file)

We give a string saying that we failed to get a description if .toString() fails, but we should just use Object.prototype.toString.call(aError) instead.
Attachment #8620642 - Flags: review?(jlong)
Comment on attachment 8620642 [details] [diff] [review]
Give a better last ditch fallback to DevToolsUtils.safeErrorString

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

Absolutely.
Attachment #8620642 - Flags: review?(jlong) → review+
https://hg.mozilla.org/mozilla-central/rev/9807fb275ecf
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 41
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: