Improve error message when packager is not running

Reviewed By: majak

Differential Revision: D3655608

fbshipit-source-id: 49401a03beb986285d288bb80ba78052a26326ef
This commit is contained in:
Pieter De Baets 2016-08-02 08:05:33 -07:00 committed by Facebook Github Bot
parent 591217ea7d
commit 73f3713cd0
1 changed files with 2 additions and 1 deletions

View File

@ -61,7 +61,8 @@ RCT_NOT_IMPLEMENTED(- (instancetype)init)
*error = [NSError errorWithDomain:RCTJavaScriptLoaderErrorDomain *error = [NSError errorWithDomain:RCTJavaScriptLoaderErrorDomain
code:RCTJavaScriptLoaderErrorNoScriptURL code:RCTJavaScriptLoaderErrorNoScriptURL
userInfo:@{NSLocalizedDescriptionKey: 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]}]; @"unsanitizedScriptURLString:(%@)", unsanitizedScriptURLString]}];
} }
return nil; return nil;