Skip to content

Commit

Permalink
avoid redbox in handleWrappedEvent
Browse files Browse the repository at this point in the history
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 30da262
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion React/Inspector/RCTInspectorPackagerConnection.m
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down

0 comments on commit 30da262

Please sign in to comment.