fix: do not print an error for an expected condition (#15991) (#16000)

This commit is contained in:
trop[bot]
2018-12-10 14:05:34 -08:00
committed by Michelle Tilley
parent c1031f6faf
commit d9a920e19a

View File

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