From 3bef953f77fffebb9b885567b378e8dbb18b49b1 Mon Sep 17 00:00:00 2001 From: futbalguy Date: Tue, 1 Sep 2015 05:12:48 -0700 Subject: [PATCH] Added clarifying language to error for not finding development server Summary: Added additional check to make if seeing error message on not finding development server: Node server URL is correctly set in AppDelegate. Should make it easier for a developer that is not running on localhost for the first time. Screenshot of updated error message: ![img_0015 1](https://cloud.githubusercontent.com/assets/7111607/9553286/d7081c30-4d72-11e5-8c24-e3e5c83281d0.PNG) Closes https://github.com/facebook/react-native/pull/2484 Github Author: futbalguy --- React/Base/RCTJavaScriptLoader.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/React/Base/RCTJavaScriptLoader.m b/React/Base/RCTJavaScriptLoader.m index 0aa73c68d..abc71b201 100755 --- a/React/Base/RCTJavaScriptLoader.m +++ b/React/Base/RCTJavaScriptLoader.m @@ -38,7 +38,7 @@ RCT_NOT_IMPLEMENTED(- (instancetype)init) // 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]; + NSString *desc = [@"Could not connect to development server.\n\nEnsure the following:\n- Node server is running and available on the same network - run 'npm start' from react-native root\n- Node server URL is correctly set in AppDelegate\n\nURL: " stringByAppendingString:scriptURL.absoluteString]; NSDictionary *userInfo = @{ NSLocalizedDescriptionKey: desc, NSLocalizedFailureReasonErrorKey: error.localizedDescription,