Permalink
Browse files

avoid redbox in handleWrappedEvent

Reviewed By: Hypuk

Differential Revision: D6602420

fbshipit-source-id: 14cf396014d896878032ee4ab67a45700eb6c257
  • Loading branch information...
bnham authored and facebook-github-bot committed Dec 19, 2017
1 parent 2679f3e commit 30da2622e222c338421508ce6e5663155fc874ef
Showing with 4 additions and 1 deletion.
  1. +4 −1 React/Inspector/RCTInspectorPackagerConnection.m
@@ -122,7 +122,10 @@ - (void)handleWrappedEvent:(NSDictionary *)payload
NSString *wrappedEvent = payload[@"wrappedEvent"];
RCTInspectorLocalConnection *inspectorConnection = _inspectorConnections[pageId];
if (!inspectorConnection) {
RCTLogError(@"Not connected: %@", pageId);
RCTLogWarn(
@"Not connected to page: %@ , failed trying to handle event: %@",
pageId,
wrappedEvent);
return;
}
[inspectorConnection sendMessage:wrappedEvent];

0 comments on commit 30da262

Please sign in to comment.