mirror of
https://github.com/System-End/cdn.git
synced 2026-04-19 18:35:12 +00:00
lol
This commit is contained in:
parent
8873e1d1af
commit
7007b3f27a
1 changed files with 2 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue