summaryrefslogtreecommitdiff
path: root/Juick/Model/User.m
diff options
context:
space:
mode:
Diffstat (limited to 'Juick/Model/User.m')
-rw-r--r--Juick/Model/User.m4
1 files changed, 2 insertions, 2 deletions
diff --git a/Juick/Model/User.m b/Juick/Model/User.m
index a0c34f9..f9b2990 100644
--- a/Juick/Model/User.m
+++ b/Juick/Model/User.m
@@ -20,11 +20,11 @@
return user;
}
-+(void) throwUnableToLogin:(UIViewController *)view error:(NSError *)error {
++(void) throwUnableToLogin:(UIViewController *)view error:(NSError *)error path:(NSString *)path params:(NSDictionary *)params {
UIAlertController *alert = [UIAlertController new];
NSString *title = error.userInfo[@"url"] ? error.userInfo[@"url"] : @"Something went wrong";
[alert setTitle:title];
- [alert setMessage:error.localizedDescription];
+ [alert setMessage:[NSString stringWithFormat:@"err: %@, path: %@, params: %@", error.localizedDescription, path, params]];
[alert addAction:[UIAlertAction actionWithTitle:@"OK" style:UIAlertActionStyleCancel handler:nil]];
UIPopoverPresentationController *popover = [alert popoverPresentationController];
if (popover) {