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

I didn't say it's globally ignored (I understand how promises work :)), I said what you did in the code sample adds a catch that ignores the error (it's an empty catch). In real code that wouldn't be empty though, it should have error reporting logic or something to handle that situation in the UI. Once you do that it's not a "hack" anymore, it's just reasonable error handling.



Do you object to Promise.all/race/any for turning potentially many rejections into one while marking all as handled?




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

Search: