mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FEATURE: Improve handling of backup storage errors
This commit is contained in:
@@ -49,6 +49,9 @@ module BackupRestore
|
||||
|
||||
ensure_cors!
|
||||
presigned_url(obj, :put, UPLOAD_URL_EXPIRES_AFTER_SECONDS)
|
||||
rescue Aws::Errors::ServiceError => e
|
||||
Rails.logger.warn("Failed to generate upload URL for S3: #{e.message.presence || e.class.name}")
|
||||
raise StorageError
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
Reference in New Issue
Block a user