Fix nil pointer exception on test failure

This commit is contained in:
Nick Craig-Wood
2015-11-07 10:19:10 +00:00
parent 2fcb8f5db7
commit be6115fbfa
+1 -1
View File
@@ -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