Skip to content

"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files

Fix nil pointer exception on test failure

Nick Craig-Woodbe6115fbfa73
diff --git a/fstest/fstests/fstests.go b/fstest/fstests/fstests.go
index 6742d06ad..f9321ebe0 100644
--- a/fstest/fstests/fstests.go
+++ b/fstest/fstests/fstests.go
@@ -279,7 +279,7 @@ func TestFsCopy(t *testing.T) {
src := findObject(t, file1.Path)
dst, err := remote.(fs.Copier).Copy(src, file1Copy.Path)
if err != nil {
- t.Errorf("Copy failed: %v", err)
+ t.Fatalf("Copy failed: %v (%#v)", err, err)
}
// check file exists in new listing