diff options
author | Vitaly Takmazov | 2019-03-24 11:26:48 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2019-03-24 11:26:48 +0300 |
commit | e260e54e2d1025d749190173a7aff4ce17eb74c5 (patch) | |
tree | d0d8cce3ae8165a516c445afa6a3a789a4251e29 /Juick | |
parent | 3941627e2a4e53228f94dd49fb67d311bb735afc (diff) |
Show all errors
Diffstat (limited to 'Juick')
-rw-r--r-- | Juick/APIClient.m | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/Juick/APIClient.m b/Juick/APIClient.m index ac827e0..f2eeb29 100644 --- a/Juick/APIClient.m +++ b/Juick/APIClient.m @@ -73,9 +73,7 @@ NSLog(@"REST Error: %@", error); [[NSOperationQueue mainQueue] addOperationWithBlock:^{ NSInteger statusCode = ((NSHTTPURLResponse *)task.response).statusCode; - if (statusCode == 401) { - callback(nil, [NSError errorWithDomain:@"JuickErrorDomain" code:401 userInfo:nil]); - } + callback(nil, [NSError errorWithDomain:@"JuickErrorDomain" code:statusCode userInfo:nil]); }]; }]; }]; |