pm2/examples/throw.js

6 lines
125 B
JavaScript

setTimeout(function() {
console.log('log message from echo auto kill');
throw new Error('Exit unacepted !!');
}, 2000);