Skip to content

Instantly share code, notes, and snippets.

@aymericbouzy
Last active March 26, 2020 22:01
Show Gist options
  • Save aymericbouzy/f359533ce509d08e87ee60ff6358e0cb to your computer and use it in GitHub Desktop.
Save aymericbouzy/f359533ce509d08e87ee60ff6358e0cb to your computer and use it in GitHub Desktop.
let finalError
try {
throw "oups!";
} catch(error) {
throw "so clumsy...";
} catch(error) {
finalError = error
}
console.log("hello!");
if (finalError) {
throw finalError;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment