Level 1M11Lesson 11.6

beginner40 minby DevFox

Catching what you do not await: .catch and unknown

Catch the error of a call you do not await with the promise's own .catch. See that .catch runs when the promise is rejected, after the lines below it, give its error the type unknown instead of the any it gets, check that error before you read its message, and keep a failing TaskKit reminder from stopping TaskKit.

  • Fundamentals
  • TypeScript
Catching what you do not `await`: `.catch` and `unknown`. Read this lesson at .