summaryrefslogtreecommitdiff
path: root/Juick
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2019-03-24 11:26:48 +0300
committerGravatar Vitaly Takmazov2019-03-24 11:26:48 +0300
commite260e54e2d1025d749190173a7aff4ce17eb74c5 (patch)
treed0d8cce3ae8165a516c445afa6a3a789a4251e29 /Juick
parent3941627e2a4e53228f94dd49fb67d311bb735afc (diff)
Show all errors
Diffstat (limited to 'Juick')
-rw-r--r--Juick/APIClient.m4
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]);
}];
}];
}];