Get a catch block error message with TypeScript
TypeScript forces you to acknowledge you can't know what was thrown making getting the error message a pain. Here's how you can manage it.
原文:https://www.a8q9.cn/en/article/get-a-catch-block-error-message-with-typescript-1568c5.html