diff --git a/src/os/file.go b/src/os/file.go index 20e56fac..b52d8c54 100644 --- a/src/os/file.go +++ b/src/os/file.go @@ -47,7 +47,7 @@ func Remove(path string) error { } err := fs.Remove(suffix) if err != nil { - return &PathError{"remove", path, err} + return err } return nil } diff --git a/src/os/os_unix_test.go b/src/os/os_unix_test.go index 8cb490c7..c1e53da2 100644 --- a/src/os/os_unix_test.go +++ b/src/os/os_unix_test.go @@ -63,9 +63,8 @@ func TestRemove(t *testing.T) { t.Errorf("TestRemove: PathError returned path %q, expected %q", pe.Path, f) } } - // TODO: make this pass. if !IsNotExist(err) { - t.Logf("TestRemove: TODO: expected IsNotExist(err) true, got false; err %q", err.Error()) + t.Errorf("TestRemove: expected IsNotExist(err) true, got false; err %q", err.Error()) } }