On Thursday, October 4, 2012 9:47:08 AM UTC+2, Mariusz Nowak wrote: > > > On Thursday, October 4, 2012 9:39:43 AM UTC+2, Domenic Denicola wrote: >> >> >> I would love to play nicely with domains, but I'm not sure it's as >> straightforward as this. Promise libraries wrap all callbacks in a >> try/catch, storing any errors for potential future listeners, so there are >> no truly unhandled exceptions---simply ones that nobody has listened for, >> yet. So I'm not sure how you would surface those to a domain, or if it's >> even appropriate to do so. Guidance definitely appreciated. >> > > > Domenic, I think it's only about unhandled errors, so in fact errors > thrown by 'end', they probably should be covered by domains in Node. I > would definitely not incorporate domain logic into 'then' error handling. >
Ah, that makes sense, thanks. In which case, I think Q is already OK, since we throw the error inside `process.nextTick` which IIRC means it will be automatically captured by the active domain. -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message because you are subscribed to the Google Groups "nodejs" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/nodejs?hl=en?hl=en
