about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2019-12-10 07:39:54 +0100
committerGitHub <noreply@github.com>2019-12-10 07:39:54 +0100
commit7ee6f51b7865ff8f5dd21a8a4ec3aad23170b8c6 (patch)
treec0be956ac046f778d27756addb2841c5890f3cf4
parentab91e7480bcea4624c6eea3e0f06a9b86b866b31 (diff)
Fix missing error templates for non-HTML requests (#12593)
-rw-r--r--app/controllers/application_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb
index e19d5b142..ca5229f79 100644
--- a/app/controllers/application_controller.rb
+++ b/app/controllers/application_controller.rb
@@ -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