1
mirror of https://github.com/rclone/rclone synced 2024-11-05 01:42:31 +01:00

Fix nil pointer exception on test failure

This commit is contained in:
Nick Craig-Wood 2015-10-30 08:40:06 +00:00
parent 2fcb8f5db7
commit be6115fbfa

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