1
0
mirror of https://github.com/golang/go synced 2024-11-23 05:10:09 -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:
David du Colombier 2014-09-18 21:16:01 -04:00 committed by Russ Cox
parent f8474fa01d
commit 2debfeb936

View File

@ -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 {