substack/node-seq — Issue #27: unintuitive try/catch flow control
Author: matthewleon
Created: 2011-12-17 09:44:30+00:00
State: open

It's unclear to me why the following does not, or should not, work. The catch block is never hit and the program terminates abnormally. This has much more pernicious consequences in, for example, Express servers, where an uncaught error in a Seq can take down the entire server.

```javascript
var Seq = require('seq')

try {
Seq()
.seq(function() { throw Error('example error') })
}
catch(err) {
console.log(err)
}
```