diff --git a/npm/cli.js b/npm/cli.js index 92f3b71c1c8a..35a2d35f037b 100755 --- a/npm/cli.js +++ b/npm/cli.js @@ -5,7 +5,11 @@ var electron = require('./') var proc = require('child_process') var child = proc.spawn(electron, process.argv.slice(2), { stdio: 'inherit', windowsHide: false }) -child.on('close', function (code) { +child.on('close', function (code, signal) { + if (code === null) { + console.error(electron, 'exited with signal', signal) + process.exit(1) + } process.exit(code) })