Skip to content
Snippets Groups Projects
Unverified Commit 7ee6f51b authored by Eugen Rochko's avatar Eugen Rochko Committed by GitHub
Browse files

Fix missing error templates for non-HTML requests (#12593)

parent ab91e748
No related branches found
No related tags found
No related merge requests found
......@@ -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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment