diff --git a/React/Base/RCTBridge.h b/React/Base/RCTBridge.h index a37b9ac7db946f..6dfbe2414557f8 100644 --- a/React/Base/RCTBridge.h +++ b/React/Base/RCTBridge.h @@ -92,7 +92,7 @@ static const char *__rct_import_##module##_##method##__ = #module"."#method; /** * URL of the script that was loaded into the bridge. */ -@property (nonatomic, copy, readonly) NSURL *bundleURL; +@property (nonatomic, copy) NSURL *bundleURL; @property (nonatomic, strong) Class executorClass; diff --git a/React/Base/RCTJavaScriptLoader.m b/React/Base/RCTJavaScriptLoader.m index 4eaaf278dd480e..dd8fab461868fd 100755 --- a/React/Base/RCTJavaScriptLoader.m +++ b/React/Base/RCTJavaScriptLoader.m @@ -85,8 +85,9 @@ - (void)loadBundleAtURL:(NSURL *)scriptURL onComplete:(void (^)(NSError *))onCom // Handle general request errors if (error) { if ([[error domain] isEqualToString:NSURLErrorDomain]) { + NSString *desc = [@"Could not connect to development server. Ensure node server is running and available on the same network - run 'npm start' from react-native root\n\nURL: " stringByAppendingString:[scriptURL absoluteString]]; NSDictionary *userInfo = @{ - NSLocalizedDescriptionKey: @"Could not connect to development server. Ensure node server is running - run 'npm start' from ReactKit root", + NSLocalizedDescriptionKey: desc, NSLocalizedFailureReasonErrorKey: [error localizedDescription], NSUnderlyingErrorKey: error, };