mirror of
https://github.com/jkl1337/duplicacy.git
synced 2026-01-02 11:44:45 -06:00
Don't show the nil error when failing to replace a file with a directory during restore
This commit is contained in:
@@ -842,7 +842,7 @@ func (manager *BackupManager) Restore(top string, revision int, inPlace bool, qu
|
||||
stat, err := os.Stat(fullPath)
|
||||
|
||||
if err == nil && !stat.IsDir() {
|
||||
LOG_ERROR("RESTORE_NOTDIR", "The path %s is not a directory: %v", fullPath, err)
|
||||
LOG_ERROR("RESTORE_NOTDIR", "The path %s is not a directory", fullPath)
|
||||
return false
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user