Try/Catch always needed for await?

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

On Sun, Oct 16, 2016, 5:32 AM Jordan Rome <jordan at> 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.

> --


Sent while riding a hoverboard... :)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the es-discuss mailing list