Skip to content

Commit 30da262

Browse files
bnhamfacebook-github-bot
authored andcommitted
avoid redbox in handleWrappedEvent
Reviewed By: Hypuk Differential Revision: D6602420 fbshipit-source-id: 14cf396014d896878032ee4ab67a45700eb6c257
1 parent 2679f3e commit 30da262

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

React/Inspector/RCTInspectorPackagerConnection.m

+4-1
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,10 @@ - (void)handleWrappedEvent:(NSDictionary *)payload
122122
NSString *wrappedEvent = payload[@"wrappedEvent"];
123123
RCTInspectorLocalConnection *inspectorConnection = _inspectorConnections[pageId];
124124
if (!inspectorConnection) {
125-
RCTLogError(@"Not connected: %@", pageId);
125+
RCTLogWarn(
126+
@"Not connected to page: %@ , failed trying to handle event: %@",
127+
pageId,
128+
wrappedEvent);
126129
return;
127130
}
128131
[inspectorConnection sendMessage:wrappedEvent];

0 commit comments

Comments
 (0)