Skip to content

Commit f246580

Browse files
added some logs for debug test issue
1 parent 64a4a6d commit f246580

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

app/controllers/admin/invoices/toggle_partial_payments_controller.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ def update
1414
else
1515
redirect_to admin_invoice_path(@invoice), alert: t(:something_went_wrong), status: :see_other
1616
end
17+
rescue StandardError => e
18+
Rails.logger.error "Error toggling partial payments: #{e.message}"
19+
puts "Error toggling partial payments: #{e.message}"
20+
redirect_to admin_invoice_path(@invoice), alert: t(:something_went_wrong), status: :see_other
1721
end
1822

1923
def set_invoice

0 commit comments

Comments
 (0)