FIX: Raise or log error when deleting of backup fails

This commit is contained in:
Gerhard Schlager
2019-01-24 20:35:36 +01:00
parent 868528f862
commit c94a2bc69b
2 changed files with 15 additions and 4 deletions

View File

@ -33,7 +33,7 @@ module BackupRestore
path = path_from_filename(filename)
if File.exists?(path)
FileUtils.remove_file(path, force: true)
File.delete(path)
reset_cache
end
end