willconant/flow-js — pull request #8 by printercu (2013-01-28 18:21:26+00:00)
Title: returnIfAnyError

One more helper method to use like this
```js
function your_method(data, callback)
{
flow.exec(
function(){ .... /*with this.MULTI() */ },
function(results){
if (flow.returnIfAnyError(results, callback)) return
... // everything's ok here
}
)
}
```
It looks even better with coffee
```coffee
(data, callback) ->
flow.exec(
->
do_smth data, @MULTI()
do_other data, @MULTI()
(results) ->
return if flow.returnIfAnyError results, callback
# ...
)