Created
June 8, 2024 08:48
-
-
Save KMJ-007/342d2dd4fdce18a6568b8c406062c3d7 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| try { | |
| throw new Error('foo'); | |
| } catch (err: unknown) { | |
| if (err instanceof Error) { | |
| return { | |
| message: `Things exploded (${err.message})`, | |
| }; | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment