windows: node process title detection fix

This commit is contained in:
bordun 2018-10-24 12:01:22 +02:00
parent 1d6448ffd4
commit 436cc1fd22

View file

@ -3,7 +3,7 @@ var dev = process.argv[1] === '.',
var serverStarted
if (process.title === 'node') {
if (process.title === 'node' || process.title === 'node.exe') {
process.on('uncaughtException', (err)=>{
console.error('A JavaScript error occurred in the main process:')
console.trace(err)