{"action":"created","issue":{"url":"https://api.github.com/repos/spion/genny/issues/4","labels_url":"https://api.github.com/repos/spion/genny/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/spion/genny/issues/4/comments","events_url":"https://api.github.com/repos/spion/genny/issues/4/events","html_url":"https://github.com/spion/genny/issues/4","id":73669704,"number":4,"title":"Throwing an error in nested genny.fn() causes the error to be incorrectly reported as \"Generator is already running\"","user":{"login":"joergd","id":5681,"avatar_url":"https://avatars.githubusercontent.com/u/5681?v=3","gravatar_id":"","url":"https://api.github.com/users/joergd","html_url":"https://github.com/joergd","followers_url":"https://api.github.com/users/joergd/followers","following_url":"https://api.github.com/users/joergd/following{/other_user}","gists_url":"https://api.github.com/users/joergd/gists{/gist_id}","starred_url":"https://api.github.com/users/joergd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joergd/subscriptions","organizations_url":"https://api.github.com/users/joergd/orgs","repos_url":"https://api.github.com/users/joergd/repos","events_url":"https://api.github.com/users/joergd/events{/privacy}","received_events_url":"https://api.github.com/users/joergd/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-05-06T16:23:57Z","updated_at":"2015-05-06T17:16:58Z","closed_at":null,"body":"    var genny = require('genny')\r\n\r\n    var child = genny.fn(function* (resume) {\r\n      throw(new Error)\r\n    })\r\n\r\n    var parent = genny.fn(function* (resume){\r\n      return yield child(resume())\r\n    })\r\n\r\n\r\n    genny.run(function* (resume) {\r\n      console.log('Start')\r\n      yield parent(resume())\r\n      console.log('Finish')\r\n    }, function(err) {\r\n      console.log(err)\r\n    })\r\n\r\n\r\nAnd the console output is:\r\n\r\n    > node --harmony fail.js\r\n\r\n    Start\r\n    [Error: Generator is already running]"},"comment":{"url":"https://api.github.com/repos/spion/genny/issues/comments/99542034","html_url":"https://github.com/spion/genny/issues/4#issuecomment-99542034","issue_url":"https://api.github.com/repos/spion/genny/issues/4","id":99542034,"user":{"login":"radford","id":55631,"avatar_url":"https://avatars.githubusercontent.com/u/55631?v=3","gravatar_id":"","url":"https://api.github.com/users/radford","html_url":"https://github.com/radford","followers_url":"https://api.github.com/users/radford/followers","following_url":"https://api.github.com/users/radford/following{/other_user}","gists_url":"https://api.github.com/users/radford/gists{/gist_id}","starred_url":"https://api.github.com/users/radford/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/radford/subscriptions","organizations_url":"https://api.github.com/users/radford/orgs","repos_url":"https://api.github.com/users/radford/repos","events_url":"https://api.github.com/users/radford/events{/privacy}","received_events_url":"https://api.github.com/users/radford/received_events","type":"User","site_admin":false},"created_at":"2015-05-06T17:16:58Z","updated_at":"2015-05-06T17:16:58Z","body":"Thanks @spion.  There are a few incompatible changes.  One is radford/genny@7a8a37d drop 'yield resume' support.  The other is dropping support for the old generator `.send()` method in radford/genny@95b88b2.  If you're OK with these, then I'd be happy to merge my branch."}}