-
-
Save melcor76/52a388c2ea161fa88731b4a4abb0cbca to your computer and use it in GitHub Desktop.
Error handler - basic
This file contains 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('En error happened'); | |
} | |
catch (error) { | |
console.error('Log error', error); | |
} | |
console.log('Script execution continues'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment