Last active
March 1, 2019 09:12
-
-
Save mlshv/bf7f8e7c868950849794c6f80c3f1e45 to your computer and use it in GitHub Desktop.
single variable example exception
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 { | |
return someUnsafeAction(); | |
} catch (e) { | |
console.error(e); | |
return `Error: ${e.message}`; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment