Skip to content

Commit

Permalink
Log call stack symbols in case of native module method's failure
Browse files Browse the repository at this point in the history
Differential Revision: D5921069

fbshipit-source-id: c386a836e6f3c314d668e02f3bae243dadcab6e3
  • Loading branch information
fromcelticpark authored and facebook-github-bot committed Sep 27, 2017
1 parent 70c6700 commit 47f6068
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions React/CxxModule/RCTNativeModule.mm
Expand Up @@ -103,8 +103,8 @@
}

NSString *message = [NSString stringWithFormat:
@"Exception '%@' was thrown while invoking %s on target %@ with params %@",
exception, method.JSMethodName, m_moduleData.name, objcParams];
@"Exception '%@' was thrown while invoking %s on target %@ with params %@\ncallstack: %@",
exception, method.JSMethodName, m_moduleData.name, objcParams, exception.callStackSymbols];
RCTFatal(RCTErrorWithMessage(message));
}
}
Expand Down

0 comments on commit 47f6068

Please sign in to comment.