Skip to content

Commit

Permalink
fix(iOS): Throw specific error messages (#171)
Browse files Browse the repository at this point in the history
  • Loading branch information
jesperjohansson authored Jan 30, 2023
1 parent fce8fdd commit 8f39511
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ios/TcpSockets.m
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ - (void)onClose:(NSNumber *)clientID withError:(NSError *)err {
}

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

Expand Down

0 comments on commit 8f39511

Please sign in to comment.