Rate limiting error message.

This commit is contained in:
Samuel Clay 2016-05-20 16:28:20 -07:00
parent 90e3036eaf
commit e4e9b5fa18

View file

@ -85,6 +85,8 @@ NEWSBLUR.Views.ReaderTaskbarInfo = Backbone.View.extend({
} else if (data.status == 503) {
message = "NewsBlur is in maintenance mode. <br> Try again soon.";
this.show_maintenance_page();
} else if (data.status == 429) {
message = "You're being rate limited.<br> Try again soon, but not too soon.";
}
NEWSBLUR.assets.flags['no_more_stories'] = true;
NEWSBLUR.app.story_titles.end_loading();