Skip to content

Commit

Permalink
Fixed a compile error.
Browse files Browse the repository at this point in the history
This came from 63ea900782a8c4038b0ba22695067120132ac96d
> Author: Kiyong Kim <[email protected]>
> Date:   Thu Apr 24 08:50:47 2014 +0900
> pkyeck#173 Objc Syntax Error 수정.k
  • Loading branch information
groosoft committed Aug 31, 2018
1 parent 883aadf commit 7ea5900
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions SocketIO.m
Original file line number Diff line number Diff line change
Expand Up @@ -600,7 +600,7 @@ - (void) onData:(NSString *)data
*/
//NSInteger errorCode = [packet.data integerValue];
NSInteger errorCode = -1000; // unknown error...
if ([packet.data isEqualToString:@"2") {
if ([packet.data isEqualToString:@"2"]) {
errorCode = (NSInteger)SocketIOUnauthorized;
}
else if ([packet.data isEqualToString:@"1"]) {
Expand All @@ -613,7 +613,7 @@ - (void) onData:(NSString *)data
DEBUGLOG(@"unknown error reason in packet.data: %@", packet.data);
}

NSString* errorDescription = [NSString stringWithFormat:NSLocalizedString(@"Connection failed: error code %ld"), (long)errorCode];
NSString* errorDescription = [NSString stringWithFormat:NSLocalizedString(@"Connection failed: error code %ld", ""), (long)errorCode];
NSDictionary* errorInfo = [NSDictionary dictionaryWithObject:errorDescription forKey:NSLocalizedDescriptionKey];
NSError* error = [NSError errorWithDomain:SocketIOError code:errorCode userInfo:errorInfo];

Expand Down

0 comments on commit 7ea5900

Please sign in to comment.