mirror of https://github.com/lukechilds/node.git
Ryan Dahl
15 years ago
1 changed files with 11 additions and 0 deletions
@ -0,0 +1,11 @@ |
|||
process.on('uncaughtException', function (err) { |
|||
console.log('Caught exception: ' + err); |
|||
}); |
|||
|
|||
setTimeout(function () { |
|||
console.log('This will still run.'); |
|||
}, 500); |
|||
|
|||
// Intentionally cause an exception, but don't catch it.
|
|||
nonexistentFunc(); |
|||
console.log('This will not run.'); |
Loading…
Reference in new issue