app/controllers/tramway/admin/application_controller.rb in tramway-admin-1.33.0.1 vs app/controllers/tramway/admin/application_controller.rb in tramway-admin-1.33.1

- old
+ new

@@ -74,9 +74,11 @@ if Rails.env.production? rescue_from StandardError do |exception| Rails.logger.warn "ERROR MESSAGE: #{exception.message}" Rails.logger.warn "BACKTRACE: #{exception.backtrace.first(30).join("\n")}" + Raven.capture_exception exception if defined?(Raven) + @exception = exception render 'tramway/admin/shared/errors/server_error', status: 500, layout: false end end