improved error message for posts
This commit is contained in:
@@ -4,6 +4,7 @@ class PostsController < ApplicationController
|
||||
respond_to :html, :xml, :json
|
||||
rescue_from PostSets::SearchError, :with => :search_error
|
||||
rescue_from Post::SearchError, :with => :search_error
|
||||
rescue_from Danbooru::Paginator::PaginationError, :with => :search_error
|
||||
|
||||
def index
|
||||
@post_set = PostSets::Post.new(tag_query, params[:page], params[:limit])
|
||||
|
||||
Reference in New Issue
Block a user