Created
January 23, 2019 10:06
-
-
Save oddlyfunctional/eb2fa4540ab026cf51988abca2e226c4 to your computer and use it in GitHub Desktop.
Force error, skipping cleanup
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 'some error'; | |
await db.destroy(); | |
} catch (error) { | |
// ... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment