Hacker News new | past | comments | ask | show | jobs | submit login

Not related to the aforementioned Bluebird feature, but I think that's the very reason the promise spec allows you to specify an error callback as the second argument to .then. I guess you can always fallback to an if/switch statement if it's a concern (which is what you'd do with await and try/catch).



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: