Created
June 25, 2016 06:03
-
-
Save andrewtamura/8a1e70792ecdbd54e07d53ce430823a9 to your computer and use it in GitHub Desktop.
The same error from multiple code paths
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
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