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

Differential Revision: D5921069

fbshipit-source-id: c386a836e6f3c314d668e02f3bae243dadcab6e3
This commit is contained in:
Alex Dvornikov 2017-09-27 09:52:20 -07:00 committed by Facebook Github Bot
parent 70c6700be8
commit 47f6068b16
1 changed files with 2 additions and 2 deletions

View File

@ -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));
}
}