summaryrefslogtreecommitdiff
path: root/Juick/ViewControllers
diff options
context:
space:
mode:
Diffstat (limited to 'Juick/ViewControllers')
-rw-r--r--Juick/ViewControllers/MessagesViewController.m4
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];