                         UIApplication.sharedApplication().networkActivityIndicatorVisible = false
                     })
                 } else {
-                    println("Could not fetch posts!")
+                    self.posts = []
+                    self.tableView.reloadData()
+                    if posts == nil {
+                        self.showErrorMessage(self.FetchErrorMessage)
+                    } else {
+                        self.showErrorMessage(self.NoPostsErrorMessage)
+                    }
                     self.scrolledToBottom = false
                     self.refreshControl.endRefreshing()
                     UIApplication.sharedApplication().networkActivityIndicatorVisible = false

        }
    }
    
    func stylePostCellAsRead(cell: UITableViewCell) {
        cell.textLabel?.textColor = ReadTextColor
        cell.detailTextLabel?.textColor = ReadDetailTextColor

        
        fetchPosts()
    }

}
