Skip to content
This repository has been archived by the owner on Dec 7, 2020. It is now read-only.

runner(..) issue with throw #62

Closed
getify opened this issue Apr 1, 2015 · 0 comments
Closed

runner(..) issue with throw #62

getify opened this issue Apr 1, 2015 · 0 comments

Comments

@getify
Copy link
Owner

getify commented Apr 1, 2015

This works as expected:

ASQ()
.runner(function*(){
   yield 1;
   yield foo();
   throw "Oops";
})
.or(function(err){
   console.log("caught",err);
});
// caught: Oops

This does not:

ASQ()
.runner(function*(){
   yield 1;
   yield ASQ(function(done){ done.fail("ok"); });
})
.or(function(err){
   console.log("caught",err);
});
// ok, ok
@getify getify closed this as completed in b5bbe03 Apr 1, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant