Skip to content

Commit

Permalink
Improve error wording when packager dies and simulator was on debug mode
Browse files Browse the repository at this point in the history
Reviewed By: jingc

Differential Revision: D2835719

fb-gh-sync-id: 694aac79cd9a76cfac32f7808c3f1bbb85d6bfb0
  • Loading branch information
martinbigio authored and christopherdro committed Jan 20, 2016
1 parent 9a8c01a commit bf9b9a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Libraries/WebSocket/RCTWebSocketExecutor.m
Expand Up @@ -140,7 +140,7 @@ - (void)sendMessage:(NSDictionary<NSString *, id> *)message waitForReply:(RCTWSM
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;
Expand Down

0 comments on commit bf9b9a0

Please sign in to comment.