From 3c4cd3f6625d8cc683c53a83423e15d562cc5ed7 Mon Sep 17 00:00:00 2001 From: "trop[bot]" Date: Mon, 10 Dec 2018 13:17:28 -0800 Subject: [PATCH] fix: do not print an error for an expected condition (#15991) (#15998) --- 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 efb99b8c972..8bdac799f70 100644 --- a/lib/browser/chrome-extension.js +++ b/lib/browser/chrome-extension.js @@ -424,7 +424,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) }