This commit is contained in:
24c02 2026-01-30 14:30:38 -05:00
parent 8873e1d1af
commit 7007b3f27a

View file

@ -35,7 +35,8 @@ class UploadsController < ApplicationController
redirect_to uploads_path, notice: "File uploaded successfully!"
rescue StandardError => e
redirect_to uploads_path, alert: "Upload failed: #{e.message}"
event_id = Sentry.capture_exception(e)
redirect_to uploads_path, alert: "Upload failed: #{e.message} (Error ID: #{event_id})"
end
def destroy