pm2/test/fixtures/interface/process_exception_with_logs.js
2018-05-17 14:45:21 +02:00

14 lines
253 B
JavaScript

var pmx = require('@pm2/io');
pmx.action('exception', function(reply) {
console.log('Im going to crash');
console.log('I will crash muhahah');
throw new Error('CRASHED');
return reply({ sucess: true});
});
setInterval(function() {
}, 1000);