mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-16 12:31:42 +00:00
resiliencia
closes #5061 closes #5060 closes #5058 closes #5057 closes #5056 closes #5054 closes #5053 closes #5051 closes #5050 closes #5048 closes #5047 closes #5045 closes #5042 closes #5040 closes #5038 closes #5036 closes #5034 closes #5033 closes #5032 closes #5030 closes #4946 closes #3856 closes #3562 closes #3558 closes #3557 closes #2707 closes #2706 closes #2705 closes #2703 closes #2702 closes #2297 closes #2296 closes #2295 closes #1970 closes #1969 closes #1768
This commit is contained in:
parent
263394baef
commit
c5896a63cf
1 changed files with 7 additions and 0 deletions
|
@ -121,6 +121,13 @@ class MetadataFile < MetadataTemplate
|
|||
# @return [Pathname]
|
||||
def destination_path_with_filename
|
||||
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
|
||||
|
||||
def relative_destination_path_with_filename
|
||||
|
|
Loading…
Reference in a new issue