mirror of
https://github.com/status-im/react-native.git
synced 2025-02-10 16:36:25 +00:00
Improve error wording when packager dies and simulator was on debug mode
Reviewed By: jingc Differential Revision: D2835719 fb-gh-sync-id: 694aac79cd9a76cfac32f7808c3f1bbb85d6bfb0
This commit is contained in:
parent
8638f6a735
commit
4f37fe6f68
@ -140,7 +140,7 @@ RCT_EXPORT_MODULE()
|
|||||||
dispatch_async(_jsQueue, ^{
|
dispatch_async(_jsQueue, ^{
|
||||||
if (!self.valid) {
|
if (!self.valid) {
|
||||||
NSError *error = [NSError errorWithDomain:@"WS" code:1 userInfo:@{
|
NSError *error = [NSError errorWithDomain:@"WS" code:1 userInfo:@{
|
||||||
NSLocalizedDescriptionKey: @"socket closed"
|
NSLocalizedDescriptionKey: @"Runtime is not ready for debugging. Make sure Packager server is running."
|
||||||
}];
|
}];
|
||||||
callback(error, nil);
|
callback(error, nil);
|
||||||
return;
|
return;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user