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:
Martín Bigio 2016-01-19 16:36:14 -08:00 committed by facebook-github-bot-9
parent 8638f6a735
commit 4f37fe6f68

View File

@ -140,7 +140,7 @@ RCT_EXPORT_MODULE()
dispatch_async(_jsQueue, ^{
if (!self.valid) {
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);
return;