Skip to content

Instantly share code, notes, and snippets.

@oddlyfunctional
Created January 23, 2019 10:06
Show Gist options
  • Save oddlyfunctional/eb2fa4540ab026cf51988abca2e226c4 to your computer and use it in GitHub Desktop.
Save oddlyfunctional/eb2fa4540ab026cf51988abca2e226c4 to your computer and use it in GitHub Desktop.
Force error, skipping cleanup
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