mirror of
https://github.com/Unitech/pm2.git
synced 2025-12-08 20:35:53 +00:00
16 lines
292 B
JavaScript
16 lines
292 B
JavaScript
|
|
var pmx = require('pmx');
|
|
|
|
pmx.action('exception', function(reply) {
|
|
setTimeout(function() {
|
|
console.log('Im going to crash');
|
|
console.log('I will crash muhahah');
|
|
throw new Error('CRASHED');
|
|
}, 100);
|
|
|
|
return reply({ sucess: true});
|
|
});
|
|
|
|
setInterval(function() {
|
|
}, 1000);
|