From c74ae107f1ee0688150b5f2dd4a348ea52c67d6b Mon Sep 17 00:00:00 2001 From: Benjamin Pasero Date: Mon, 10 Dec 2018 21:06:26 +0100 Subject: [PATCH] fix: do not print an error for an expected condition (#15991) (#15992) --- lib/browser/chrome-extension.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/browser/chrome-extension.js b/lib/browser/chrome-extension.js index 5bd9f81bd281..627487ae217c 100644 --- a/lib/browser/chrome-extension.js +++ b/lib/browser/chrome-extension.js @@ -427,7 +427,7 @@ app.once('ready', function () { } } } catch (error) { - if (process.env.ELECTRON_ENABLE_LOGGING) { + if (process.env.ELECTRON_ENABLE_LOGGING && error.code !== 'ENOENT') { console.error('Failed to load browser extensions from directory:', loadedDevToolsExtensionsPath) console.error(error) }