Skip to content

Commit 99e6e48

Browse files
fhs0intro
authored andcommitted
os: handle ' is a directory' error as IsExist on Plan 9
This error is returned by os.Mkdir when the directory already exists. This change fixes some upspin tests. Change-Id: I9ad5aefebb32dff577726d537b4f3826d79868eb Reviewed-on: https://go-review.googlesource.com/88656 Reviewed-by: David du Colombier <[email protected]> Run-TryBot: David du Colombier <[email protected]> TryBot-Result: Gobot Gobot <[email protected]>
1 parent 4a7334b commit 99e6e48

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/os/error_plan9.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
package os
66

77
func isExist(err error) bool {
8-
return checkErrMessageContent(err, " exists")
8+
return checkErrMessageContent(err, " exists", " is a directory")
99
}
1010

1111
func isNotExist(err error) bool {

0 commit comments

Comments
 (0)