lib/egregious.rb in egregious-0.1.4 vs lib/egregious.rb in egregious-0.1.5
- old
+ new
@@ -165,10 +165,11 @@
status = status_code_for_exception(exception)
format.xml { render :xml=> exception.to_xml, :status => status }
format.json { render :json=> exception.to_json, :status => status }
# render the html page for the status we are returning it exists...if not then render the 500.html page.
format.html { render :file => File.exists?(build_html_file_path(status)) ?
- build_html_file_path(status) : build_html_file_path('500')}
+ build_html_file_path(status) : build_html_file_path('500'),
+ :status => status }
end
end
def build_html_file_path(status)
File.join(Rails.root, 'public', "#{status_code(status)}.html")