better crash diagnostics in ffmpeg test

This commit is contained in:
Jeremy Apthorp 2018-09-20 14:15:33 -07:00 committed by Aleksei Kuzmin
parent 6ab5c2faa1
commit cc53269231
2 changed files with 9 additions and 1 deletions

View file

@ -17,6 +17,11 @@ app.once('ready', () => {
show: false
})
window.webContents.on('crashed', (event, killed) => {
console.log(`WebContents crashed (killed=${killed})`)
app.exit(1)
})
window.loadFile(path.resolve(__dirname, 'asar', 'video.asar', 'index.html'))
ipcMain.on('asar-video', (event, message, error) => {