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

This commit is contained in:
L. David Baron 2013-11-26 15:28:17 -08:00
Родитель a72d594dd7
Коммит b9bfaa7462
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -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);