print error

This commit is contained in:
邱博亞 2023-05-19 21:10:48 +08:00
parent 151748bcb8
commit 034d08971a
1 changed files with 2 additions and 1 deletions

View File

@ -675,7 +675,8 @@ class AnnouncementsController < ApplicationController
render :file => "#{Rails.root}/app/views/errors/403.html", :layout => false, :status => :not_found, :content_type => 'text/html'
return
end
rescue
rescue => e
puts [e, e.backtrace]
render :file => "#{Rails.root}/app/views/errors/404.html", :layout => false, :status => :not_found, :content_type => 'text/html'
return
end