mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 16:41:17 +08:00
FIX: Raise or log error when deleting of backup fails
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user