Skip to content

Commit 8f39511

Browse files
fix(iOS): Throw specific error messages (#171)
1 parent fce8fdd commit 8f39511

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ios/TcpSockets.m

+1-1
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ - (void)onClose:(NSNumber *)clientID withError:(NSError *)err {
283283
}
284284

285285
- (void)onError:(TcpSocketClient *)client withError:(NSError *)err {
286-
NSString *msg = err.localizedFailureReason ?: err.localizedDescription;
286+
NSString *msg = err.localizedDescription ?: err.localizedFailureReason;
287287
[self sendEventWithName:@"error" body:@{@"id" : client.id, @"error" : msg}];
288288
}
289289

0 commit comments

Comments
 (0)