mirror of
https://github.com/Unitech/pm2.git
synced 2026-02-01 16:57:09 +00:00
(exception) throttle test
This commit is contained in:
parent
1733f7b5a0
commit
adcfa6c2c5
@ -2,11 +2,9 @@
|
||||
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);
|
||||
console.log('Im going to crash');
|
||||
console.log('I will crash muhahah');
|
||||
throw new Error('CRASHED');
|
||||
|
||||
return reply({ sucess: true});
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user