diff --git a/app/controllers/customers_controller.rb b/app/controllers/customers_controller.rb index 0197dd0..32abcb2 100644 --- a/app/controllers/customers_controller.rb +++ b/app/controllers/customers_controller.rb @@ -98,8 +98,9 @@ class CustomersController < ApplicationController def edit @customer = Customer.find_by_id(params[:id]) return render_404 unless @customer - rescue - flash[:error] = t :notice_customer_not_found + rescue => e + log "Failed to edit customer" + flash[:error] = e.message render_404 end