mirror of
https://0xacab.org/sutty/sutty
synced 2025-02-22 21:21:49 +00:00
fix: reportar errores #17889
This commit is contained in:
parent
f57a0f1aa4
commit
c58740e524
1 changed files with 4 additions and 2 deletions
|
@ -45,7 +45,7 @@ module ActiveStorage
|
|||
checksum = token[:checksum]
|
||||
end
|
||||
|
||||
named_disk_service(token[:service_name]).upload token[:key], body, checksum: checksum
|
||||
named_disk_service(site.name).upload token[:key], body, checksum: checksum
|
||||
|
||||
site.static_files.attach(blob)
|
||||
else
|
||||
|
@ -54,7 +54,9 @@ module ActiveStorage
|
|||
else
|
||||
head :not_found
|
||||
end
|
||||
rescue ActiveStorage::IntegrityError
|
||||
rescue ActiveRecord::ActiveRecordError, ActiveStorage::Error => e
|
||||
ExceptionNotifier.notify_exception(e, data: { token: })
|
||||
|
||||
head :unprocessable_entity
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue