Improve error message when packager is not running
Reviewed By: majak Differential Revision: D3655608 fbshipit-source-id: 49401a03beb986285d288bb80ba78052a26326ef
This commit is contained in:
parent
591217ea7d
commit
73f3713cd0
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue