Tweak logged messages

This commit is contained in:
Kevin Sawicki 2017-03-29 16:38:34 -07:00
parent 7873130019
commit b85ebb00aa

View file

@ -31,12 +31,11 @@ app.once('ready', () => {
} }
if (message === 'error' && error === MEDIA_ERR_SRC_NOT_SUPPORTED) { if (message === 'error' && error === MEDIA_ERR_SRC_NOT_SUPPORTED) {
console.log('Video format not supported, proprietary codecs are not included')
app.exit(0) app.exit(0)
return return
} }
console.log(`Unexpected error: ${error}`) console.log(`Unexpected response from page: ${message} ${error}`)
app.exit(1) app.exit(1)
}) })
}) })