Created
October 14, 2017 12:47
-
-
Save surajair/de3965e8e99488df012092d051ebbf5d to your computer and use it in GitHub Desktop.
Sentry Manually Logging Error
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
Raven.context(function() { | |
doSomething(a[0]) // possibly a[0] is undefined and hence will cause an exception | |
}) | |
var doIt = function() { | |
// errorenous code here | |
} | |
setTimeout(Raven.wrap(doIt), 1000) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment