Permalink
Browse files

Log call stack symbols in case of native module method's failure

Differential Revision: D5921069

fbshipit-source-id: c386a836e6f3c314d668e02f3bae243dadcab6e3
  • Loading branch information...
fromcelticpark authored and facebook-github-bot committed Sep 27, 2017
1 parent 70c6700 commit 47f6068b16de2a8ef46ccb381ba7d76ac9359654
Showing with 2 additions and 2 deletions.
  1. +2 −2 React/CxxModule/RCTNativeModule.mm
@@ -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));
}
}

0 comments on commit 47f6068

Please sign in to comment.