summaryrefslogtreecommitdiff
path: root/Juick/Model/User.m
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2019-03-21 13:48:40 +0300
committerGravatar Vitaly Takmazov2019-03-21 14:08:59 +0300
commit2ddd7f7964d09236b43485c795970038dd1c309f (patch)
tree74f3aa2d9022542bad2e1450ab374e38a2312f77 /Juick/Model/User.m
parent6cab755f3a9308991d52b1870bad28af5edb297c (diff)
New login API
Diffstat (limited to 'Juick/Model/User.m')
-rw-r--r--Juick/Model/User.m6
1 files changed, 3 insertions, 3 deletions
diff --git a/Juick/Model/User.m b/Juick/Model/User.m
index 6d5e818..344eb7b 100644
--- a/Juick/Model/User.m
+++ b/Juick/Model/User.m
@@ -24,10 +24,10 @@
return password != nil;
}
-+(void) throwUnableToLogin:(UIViewController *)view {
++(void) throwUnableToLogin:(UIViewController *)view error:(NSError *)error {
UIAlertController *alert = [UIAlertController new];
- [alert setTitle:@"Error"];
- [alert setMessage:@"Unable to login, check username/password, or network connectivity"];
+ [alert setTitle:@"Something went wrong"];
+ [alert setMessage:error.localizedDescription];
[alert addAction:[UIAlertAction actionWithTitle:@"OK" style:UIAlertActionStyleCancel handler:nil]];
UIPopoverPresentationController *popover = [alert popoverPresentationController];
if (popover) {