1
0
mirror of https://github.com/gilbertchen/duplicacy synced 2025-12-06 00:03:38 +00:00

Retain the error message in the SFTP rename error

This commit is contained in:
Gilbert Chen
2017-07-20 10:19:11 -04:00
parent f3447bb611
commit 1aee9bd6ef

View File

@@ -285,7 +285,7 @@ func (storage *SFTPStorage) UploadFile(threadIndex int, filePath string, content
storage.client.Remove(temporaryFile) storage.client.Remove(temporaryFile)
return nil return nil
} else { } else {
return fmt.Errorf("Uploaded file but failed to store it at %s", fullPath) return fmt.Errorf("Uploaded file but failed to store it at %s: %v", fullPath, err)
} }
} }