mirror of
https://github.com/golang/go
synced 2024-11-12 10:30:23 -07:00
os: handle 'has been removed' error as IsNotExist on Plan 9
It fixes the TestRemoveAllRace test introduced in CL 145860043. LGTM=bradfitz R=rsc, bradfitz CC=golang-codereviews https://golang.org/cl/147820044
This commit is contained in:
parent
f8474fa01d
commit
2debfeb936
@ -25,7 +25,7 @@ func isNotExist(err error) bool {
|
||||
case *LinkError:
|
||||
err = pe.Err
|
||||
}
|
||||
return contains(err.Error(), "does not exist") || contains(err.Error(), "not found")
|
||||
return contains(err.Error(), "does not exist") || contains(err.Error(), "not found") || contains(err.Error(), "has been removed")
|
||||
}
|
||||
|
||||
func isPermission(err error) bool {
|
||||
|
Loading…
Reference in New Issue
Block a user