From be400c2b2a12200316741b54d5dfb738e7af2f8d Mon Sep 17 00:00:00 2001 From: Rick Barrette Date: Tue, 3 Mar 2026 19:22:15 -0500 Subject: [PATCH] Added logging for errors when editing --- app/controllers/customers_controller.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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