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

This commit is contained in:
Benjamin Pasero 2018-12-10 21:06:26 +01:00 committed by Shelley Vohr
parent 45a937df0a
commit c74ae107f1

View file

@ -427,7 +427,7 @@ app.once('ready', function () {
} }
} }
} catch (error) { } 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('Failed to load browser extensions from directory:', loadedDevToolsExtensionsPath)
console.error(error) console.error(error)
} }