From 7e021f26d3f372936dd5480fa2487803d8b87431 Mon Sep 17 00:00:00 2001 From: Gilbert Chen Date: Wed, 30 May 2018 13:23:35 -0400 Subject: [PATCH] Don't show the nil error when failing to replace a file with a directory during restore --- src/duplicacy_backupmanager.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/duplicacy_backupmanager.go b/src/duplicacy_backupmanager.go index 8ce96b9..83d897f 100644 --- a/src/duplicacy_backupmanager.go +++ b/src/duplicacy_backupmanager.go @@ -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 }