mirror of
https://git.kescher.at/CatCatNya/catstodon.git
synced 2024-11-23 02:58:07 +01:00
Fix missing error templates for non-HTML requests (#12593)
This commit is contained in:
parent
ab91e7480b
commit
7ee6f51b78
1 changed files with 1 additions and 1 deletions
|
@ -136,6 +136,6 @@ class ApplicationController < ActionController::Base
|
|||
end
|
||||
|
||||
def respond_with_error(code)
|
||||
render "errors/#{code}", layout: 'error', status: code
|
||||
render "errors/#{code}", layout: 'error', status: code, formats: [:html]
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue