Added logging for errors when editing

This commit is contained in:
2026-03-03 19:22:15 -05:00
parent 23e565a304
commit be400c2b2a

View File

@@ -98,8 +98,9 @@ class CustomersController < ApplicationController
def edit def edit
@customer = Customer.find_by_id(params[:id]) @customer = Customer.find_by_id(params[:id])
return render_404 unless @customer return render_404 unless @customer
rescue rescue => e
flash[:error] = t :notice_customer_not_found log "Failed to edit customer"
flash[:error] = e.message
render_404 render_404
end end