Log call stack symbols in case of native module method's failure
Differential Revision: D5921069 fbshipit-source-id: c386a836e6f3c314d668e02f3bae243dadcab6e3
This commit is contained in:
parent
70c6700be8
commit
47f6068b16
|
@ -103,8 +103,8 @@ MethodCallResult RCTNativeModule::invokeInner(unsigned int methodId, const folly
|
|||
}
|
||||
|
||||
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));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue