diff options
author | Vitaly Takmazov | 2018-10-18 19:51:54 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2018-10-18 19:51:54 +0300 |
commit | 6199c87ef68d996f930b9a058564b344319a85e1 (patch) | |
tree | 07666957292a65e9112f493414d3875f0a7a20c4 /Juick/ViewControllers/MessagesViewController.m | |
parent | ab1406ff4f2a0414483f24114f4fa9d1bc932e0d (diff) |
Alert refresh errors
Diffstat (limited to 'Juick/ViewControllers/MessagesViewController.m')
-rw-r--r-- | Juick/ViewControllers/MessagesViewController.m | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Juick/ViewControllers/MessagesViewController.m b/Juick/ViewControllers/MessagesViewController.m index 3fa6642..6b8fdb7 100644 --- a/Juick/ViewControllers/MessagesViewController.m +++ b/Juick/ViewControllers/MessagesViewController.m @@ -33,6 +33,10 @@ [self.tableView reloadData]; } [[APIClient sharedClient] pullNextFromPath:self.path params:self.params callback:^(NSArray *next, NSError *err) { + if (err) { + [User throwUnableToLogin:self]; + return; + } NSArray *newMsgs = next; if ([self isAtTop:self.params]) { [self.messages removeAllObjects]; |