From 1aee9bd6ef238a45ecbe67e70f495b5851be5425 Mon Sep 17 00:00:00 2001 From: Gilbert Chen Date: Thu, 20 Jul 2017 10:19:11 -0400 Subject: [PATCH] Retain the error message in the SFTP rename error --- src/duplicacy_sftpstorage.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/duplicacy_sftpstorage.go b/src/duplicacy_sftpstorage.go index ed19918..6442af2 100644 --- a/src/duplicacy_sftpstorage.go +++ b/src/duplicacy_sftpstorage.go @@ -285,7 +285,7 @@ func (storage *SFTPStorage) UploadFile(threadIndex int, filePath string, content storage.client.Remove(temporaryFile) return nil } 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) } }