5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-27 00:46:22 +00:00

Merge branch 'jekyll-service' into panel.sutty.nl

This commit is contained in:
f 2022-03-22 20:16:57 -03:00
commit f067a8672a

View file

@ -121,6 +121,13 @@ class MetadataFile < MetadataTemplate
# @return [Pathname] # @return [Pathname]
def destination_path_with_filename def destination_path_with_filename
destination_path.realpath destination_path.realpath
# Si el archivo no llegara a existir, en lugar de hacer fallar todo,
# 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)
value['path']
end end
def relative_destination_path_with_filename def relative_destination_path_with_filename