Skip to content

Instantly share code, notes, and snippets.

@andrewtamura
Created June 25, 2016 06:03
Show Gist options
  • Save andrewtamura/8a1e70792ecdbd54e07d53ce430823a9 to your computer and use it in GitHub Desktop.
Save andrewtamura/8a1e70792ecdbd54e07d53ce430823a9 to your computer and use it in GitHub Desktop.
The same error from multiple code paths
var raven = require('./raven.js');
function foo() {
try {
thowsException();
} catch (err) {
raven.captureException(err);
}
}
function bar() {
try {
thowsException();
} catch (err) {
raven.captureException(err);
}
}
function thowsException() {
throw new Error('Generic Error');
}
foo();
bar();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment