Skip to content

Commit

Permalink
Tell react-native plugin to use the right stacktrace
Browse files Browse the repository at this point in the history
  • Loading branch information
mattrobenolt committed Nov 2, 2015
1 parent a52ba5f commit f031fe0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions plugins/react-native.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,9 @@ module.exports = function (Raven) {
data.culprit = normalizeUrl(data.culprit);
}

if (data.stacktrace && data.stacktrace.frames && data.stacktrace.frames.length) {
data.stacktrace.frames.forEach(function (frame) {
if (data.exception) {
// if data.exception exists, all of the other keys should gaurantee to exist
data.exception.values[0].stacktrace.frames.forEach(function (frame) {
frame.filename = normalizeUrl(frame.filename);
});
}
Expand Down

0 comments on commit f031fe0

Please sign in to comment.