Closed Bug 1553283 Opened 6 years ago Closed 6 years ago

When search initialisation fails, throw errors via Components.Exception for better information

Categories

(Firefox :: Search, defect, P2)

defect
Points:
1

Tracking

()

RESOLVED FIXED
Firefox 69
Iteration:
69.1 - May 13 - 26
Tracking Status
firefox69 --- fixed

People

(Reporter: standard8, Assigned: standard8)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

Currently, when search initialisation fails, we throw a very obscure message:

JavaScript error: , line 0: uncaught exception 2147500037

This was discovered in bug 1550923, and bug 1536556 shows us the solution - as the search service is a Javascript component, use Components.Exception to throw the error, and then we'll get an error similar to:

JavaScript error: resource://gre/modules/SearchService.jsm, line 1711: NS_ERROR_FAILURE: Search initialisation failed

Pushed by mbanner@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/edb5fc31b4f5 When search initialisation fails, throw errors via Components.Exception for better exception information. r=daleharvey
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 69
Iteration: --- → 69.1 - May 13 - 26
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: