]> cat aescling's git repositories - mastodon.git/commitdiff
Fix missing error templates for non-HTML requests (#12593)
authorEugen Rochko <eugen@zeonfederated.com>
Tue, 10 Dec 2019 06:39:54 +0000 (07:39 +0100)
committerGitHub <noreply@github.com>
Tue, 10 Dec 2019 06:39:54 +0000 (07:39 +0100)
app/controllers/application_controller.rb

index e19d5b142f9b158cd45a954f83fc3a12773ca3d4..ca5229f7966d08cc9c12cf0454009286dcbbc8a1 100644 (file)
@@ -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