mirror of
https://0xacab.org/sutty/sutty
synced 2025-02-23 04:31: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]
|
checksum = token[:checksum]
|
||||||
end
|
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)
|
site.static_files.attach(blob)
|
||||||
else
|
else
|
||||||
|
@ -54,7 +54,9 @@ module ActiveStorage
|
||||||
else
|
else
|
||||||
head :not_found
|
head :not_found
|
||||||
end
|
end
|
||||||
rescue ActiveStorage::IntegrityError
|
rescue ActiveRecord::ActiveRecordError, ActiveStorage::Error => e
|
||||||
|
ExceptionNotifier.notify_exception(e, data: { token: })
|
||||||
|
|
||||||
head :unprocessable_entity
|
head :unprocessable_entity
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue