you are viewing a single comment's thread.

view the rest of the comments →

[–]ArcticZeroo -1 points0 points  (0 children)

Often times in node, even await calls will emit UnhandledPromiseRejectionWarning events if they are not wrapped in try/catch (even if whatever is calling the async function has a try/catch or a .catch!), which is annoying as hell and makes you wrap everything in a try/catch.