Skip to content

Commit

Permalink
[RUBY-2800] temporarily disabling custom error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
brujeo committed Dec 11, 2023
1 parent 2d7c6f7 commit 87ea228
Showing 1 changed file with 6 additions and 11 deletions.
17 changes: 6 additions & 11 deletions app/controllers/waste_carriers_engine/application_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,12 @@ class ApplicationController < ActionController::Base

default_form_builder GOVUKDesignSystemFormBuilder::FormBuilder

rescue_from ActionController::RoutingError do |e|
Rails.logger.error "Page not found: #{e}"
redirect_to page_path("error_404")
end

rescue_from StandardError do |e|
Airbrake.notify e
Rails.logger.error "Unhandled exception: #{e}"
log_transient_registration_details("Uncaught system error", e, @transient_registration)
redirect_to page_path("system_error")
end
# rescue_from StandardError do |e|
# Airbrake.notify e
# Rails.logger.error "Unhandled exception: #{e}"
# log_transient_registration_details("Uncaught system error", e, @transient_registration)
# redirect_to page_path("system_error")
# end

protected

Expand Down

0 comments on commit 87ea228

Please sign in to comment.