pm2/test/fixtures/interface/process_exception_with_logs.js
2017-02-23 22:21:44 +01:00

14 lines
249 B
JavaScript

var pmx = require('pmx');
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);