mirror of
https://0xacab.org/sutty/sutty
synced 2025-01-19 17:03:38 +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:
parent
aab8ed9fed
commit
5397ae66a2
1 changed files with 3 additions and 1 deletions
|
@ -124,13 +124,15 @@ class MetadataFile < MetadataTemplate
|
||||||
# devolvemos la ruta original, que puede ser el archivo que no existe
|
# devolvemos la ruta original, que puede ser el archivo que no existe
|
||||||
# o vacía si se está subiendo uno.
|
# o vacía si se está subiendo uno.
|
||||||
rescue Errno::ENOENT => e
|
rescue Errno::ENOENT => e
|
||||||
ExceptionNotifier.notify_exception(e)
|
ExceptionNotifier.notify_exception(e, data: { site: site.name, path: value['path'] })
|
||||||
|
|
||||||
Pathname.new(value['path'])
|
Pathname.new(value['path'])
|
||||||
end
|
end
|
||||||
|
|
||||||
def relative_destination_path_with_filename
|
def relative_destination_path_with_filename
|
||||||
destination_path_with_filename.relative_path_from(Pathname.new(site.path).realpath)
|
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
|
end
|
||||||
|
|
||||||
def static_file_path
|
def static_file_path
|
||||||
|
|
Loading…
Reference in a new issue