Skip to content

Commit

Permalink
Bug 1833848 - Improve some search service logging. r=search-reviewers…
Browse files Browse the repository at this point in the history
…,daleharvey

Differential Revision: https://phabricator.services.mozilla.com/D178434
  • Loading branch information
Standard8 committed May 20, 2023
1 parent f786a9e commit 7513b24
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions toolkit/components/search/SearchService.sys.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -356,10 +356,10 @@ export class SearchService {

// nsISearchService
async init() {
lazy.logConsole.debug("init");
if (this.#initStarted) {
return this.#initObservers.promise;
}
lazy.logConsole.debug("init");

TelemetryStopwatch.start("SEARCH_SERVICE_INIT_MS");
this.#initStarted = true;
Expand Down Expand Up @@ -2623,7 +2623,7 @@ export class SearchService {
let existingEngine = this.#getEngineByName(newEngine.name);
if (existingEngine) {
throw Components.Exception(
"An engine with that name already exists!",
`An engine called ${newEngine.name} already exists!`,
Cr.NS_ERROR_FILE_ALREADY_EXISTS
);
}
Expand Down

0 comments on commit 7513b24

Please sign in to comment.