mirror of
https://github.com/mastodon/mastodon.git
synced 2024-12-13 14:45:12 +01:00
Use error pack when rendering error pages. Fixes #305.
This commit is contained in:
parent
5083311d64
commit
70c99a9f34
@ -192,6 +192,7 @@ class ApplicationController < ActionController::Base
|
|||||||
format.any { head code }
|
format.any { head code }
|
||||||
format.html do
|
format.html do
|
||||||
set_locale
|
set_locale
|
||||||
|
use_pack 'error'
|
||||||
render "errors/#{code}", layout: 'error', status: code
|
render "errors/#{code}", layout: 'error', status: code
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user