5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-07-01 04:46:08 +00:00

informar con mas detalle cuando el archivo no existe

closes #6991

closes #6990

closes #6985

closes #6969

closes #6966
This commit is contained in:
f 2022-07-13 14:18:39 -03:00
parent aab8ed9fed
commit 5397ae66a2

View file

@ -124,13 +124,15 @@ class MetadataFile < MetadataTemplate
# devolvemos la ruta original, que puede ser el archivo que no existe
# o vacía si se está subiendo uno.
rescue Errno::ENOENT => e
ExceptionNotifier.notify_exception(e)
ExceptionNotifier.notify_exception(e, data: { site: site.name, path: value['path'] })
Pathname.new(value['path'])
end
def relative_destination_path_with_filename
destination_path_with_filename.relative_path_from(Pathname.new(site.path).realpath)
rescue ArgumentError => e
ExceptionNotifier.notify_exception(e, data: { site: site.name, path: value['path'] })
end
def static_file_path