Last active
September 14, 2020 18:57
-
-
Save ctrlaltdev/45feb76bf49545ff9047b68ff21d96ca to your computer and use it in GitHub Desktop.
js error handling based on the internets
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 { | |
// do something | |
} catch (e) { | |
console.warn(e.message) | |
const xcb = `https://stackoverflow.com/search?q=[js]+${e.message}` | |
window.open(xcb, '_blank') | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment