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

This commit is contained in:
trop[bot] 2018-12-10 13:58:28 -08:00 committed by Michelle Tilley
parent 2046d8052a
commit f2c1f255ef

View file

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