From 73f3713cd0894cb05e3c979beeca2ed9dd5c962e Mon Sep 17 00:00:00 2001 From: Pieter De Baets Date: Tue, 2 Aug 2016 08:05:33 -0700 Subject: [PATCH] Improve error message when packager is not running Reviewed By: majak Differential Revision: D3655608 fbshipit-source-id: 49401a03beb986285d288bb80ba78052a26326ef --- React/Base/RCTJavaScriptLoader.m | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/React/Base/RCTJavaScriptLoader.m b/React/Base/RCTJavaScriptLoader.m index f07b9adae..fd40d5a89 100755 --- a/React/Base/RCTJavaScriptLoader.m +++ b/React/Base/RCTJavaScriptLoader.m @@ -61,7 +61,8 @@ RCT_NOT_IMPLEMENTED(- (instancetype)init) *error = [NSError errorWithDomain:RCTJavaScriptLoaderErrorDomain code:RCTJavaScriptLoaderErrorNoScriptURL userInfo:@{NSLocalizedDescriptionKey: - [NSString stringWithFormat:@"No script URL provided. " + [NSString stringWithFormat:@"No script URL provided. Make sure the packager is " + @"running or you have embedded a JS bundle in your application bundle." @"unsanitizedScriptURLString:(%@)", unsanitizedScriptURLString]}]; } return nil;