Try/Catch always needed for await?

Marky Mark mark at heyimmark.com
Sun Oct 16 13:14:00 UTC 2016


On Sun, Oct 16, 2016, 5:32 AM Jordan Rome <jordan at jordanrome.com> wrote:

>
> I'm still confused as to why it's important to always try/catch (or even
> catch for promises) if you get an error message in the console (vs calling
> console.error manually).
>

You don't always have to catch promise errors. It's entirely optional and
depends on your needs.Why do you think you always have to? But if you dont,
your program will never know about the error or do anything to handle it.

> --

mark

Sent while riding a hoverboard...
heyimmark.com :)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20161016/489924a3/attachment.html>


More information about the es-discuss mailing list