Don't show the nil error when failing to replace a file with a directory during restore

This commit is contained in:
Gilbert Chen
2018-05-30 13:23:35 -04:00
parent 0e585e4be4
commit 7e021f26d3

View File

@@ -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
}