diff options
author | David du Colombier <0intro@gmail.com> | 2014-09-18 21:16:01 -0400 |
---|---|---|
committer | David du Colombier <0intro@gmail.com> | 2014-09-18 21:16:01 -0400 |
commit | 3f99a9313b3e979bcfbde1252f34b0a53e9473bb (patch) | |
tree | f3a2c7e97c16178ffc1f24256fe4371f2a441a94 /src/os | |
parent | 12fe81b96e9f1c6fc2e7133c1973f3eb17a285ca (diff) | |
download | go-3f99a9313b3e979bcfbde1252f34b0a53e9473bb.tar.gz |
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://codereview.appspot.com/147820044
Committer: Russ Cox <rsc@golang.org>
Diffstat (limited to 'src/os')
-rw-r--r-- | src/os/error_plan9.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/os/error_plan9.go b/src/os/error_plan9.go index 62d4e420e..45cd74792 100644 --- a/src/os/error_plan9.go +++ b/src/os/error_plan9.go @@ -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 { |