react-native/React/CxxBridge
Kevin Cooper e443b7379e More verbose error messages for iOS
Summary:
Output the reason for the error when failing to load source code. This was a big help when trying to diagnose https://github.com/facebook/react-native/issues/13299.

~~Unfortunately there still seems to be no way to get the offending line number (because `loadError.userInfo[RCTJSStackTraceKey]` is empty), but this is good enough.~~

Before:

```
[warn][tid:com.facebook.react.JavaScript][RCTBatchedBridge.m:510] Failed to execute source code. Unhandled JS Exception: SyntaxError
```

After:

```
[warn][tid:com.facebook.react.JavaScript][RCTJSCErrorHandling.mm:30] Couldn't get stack trace for http://localhost:8081/index.ios.bundle?platform=ios&dev=true&minify=false:81886
[warn][tid:com.facebook.react.JavaScript][RCTBatchedBridge.m:510] Failed to execute source code. Unhandled JS Exception: SyntaxError Unexpected keyword 'var'
```
Closes https://github.com/facebook/react-native/pull/13561

Differential Revision: D4908501

Pulled By: javache

fbshipit-source-id: a316dc70739b917b3cc690309d0ff37a8bb5d412
2017-04-18 14:19:13 -07:00
..
NSDataBigString.h Create NSDataBigString 2017-02-20 05:00:58 -08:00
NSDataBigString.mm Create NSDataBigString 2017-02-20 05:00:58 -08:00
RCTCxxBridge.mm More verbose error messages for iOS 2017-04-18 14:19:13 -07:00
RCTJSCHelpers.h Tease apart React and RCTBatchedBridge targets 2017-03-21 18:31:23 -07:00
RCTJSCHelpers.mm Tease apart React and RCTBatchedBridge targets 2017-03-21 18:31:23 -07:00
RCTMessageThread.h move C++ bridge into oss directory 2017-02-01 14:14:32 -08:00
RCTMessageThread.mm Fix error handling for nested exceptions 2017-02-15 06:15:11 -08:00
RCTObjcExecutor.h Fix warnings in React.xcodeproj 2017-03-23 11:36:17 -07:00
RCTObjcExecutor.mm Move RCTFollyConvert to the correct namespace 2017-02-16 06:59:27 -08:00