Try/Catch always needed for await?
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.
Sent while riding a hoverboard...
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the es-discuss