From e260e54e2d1025d749190173a7aff4ce17eb74c5 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Sun, 24 Mar 2019 11:26:48 +0300 Subject: Show all errors --- Juick/APIClient.m | 4 +--- 1 file changed, 1 insertion(+), 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]); }]; }]; }]; -- cgit v1.2.3