From b9bfaa746226b4932f6677a3bda5ae0da1e32407 Mon Sep 17 00:00:00 2001 From: "L. David Baron" Date: Tue, 26 Nov 2013 15:28:17 -0800 Subject: [PATCH] Bug 940446: Log a variable that's guaranteed to exist, so we don't throw an exception from the exception handler and break the URL bar and search bar. r=smacleod --- toolkit/components/search/nsSearchService.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/toolkit/components/search/nsSearchService.js b/toolkit/components/search/nsSearchService.js index 6582322b3ea0..d2aedfd3bf42 100644 --- a/toolkit/components/search/nsSearchService.js +++ b/toolkit/components/search/nsSearchService.js @@ -3408,7 +3408,7 @@ SearchService.prototype = { addedEngine = new Engine(file, SEARCH_DATA_XML, !isWritable); yield checkForSyncCompletion(addedEngine._asyncInitFromFile()); } catch (ex if ex.result != Cr.NS_ERROR_ALREADY_INITIALIZED) { - LOG("_asyncLoadEnginesFromDir: Failed to load " + file.path + "!\n" + ex); + LOG("_asyncLoadEnginesFromDir: Failed to load " + osfile.path + "!\n" + ex); continue; } engines.push(addedEngine);