Skip to content
This repository was archived by the owner on May 14, 2024. It is now read-only.

Commit 8245987

Browse files
committed
Fix improper use of NSLocalizedDescriptionKey.
This commit fixes a typo where an underlying error (NSError object) was associated with NSLocalizedDescriptionKey that is expected to be NSString.
1 parent cc48dd0 commit 8245987

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

SocketIO.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -676,7 +676,7 @@ - (void) connection:(NSURLConnection *)connection didFailWithError:(NSError *)er
676676
_isConnecting = NO;
677677

678678
if ([_delegate respondsToSelector:@selector(socketIO:onError:)]) {
679-
NSMutableDictionary *errorInfo = [NSDictionary dictionaryWithObject:error forKey:NSLocalizedDescriptionKey];
679+
NSMutableDictionary *errorInfo = [NSDictionary dictionaryWithObject:error forKey:NSUnderlyingErrorKey];
680680

681681
NSError *err = [NSError errorWithDomain:SocketIOError
682682
code:SocketIOHandshakeFailed

0 commit comments

Comments
 (0)