1
0
mirror of https://github.com/golang/go synced 2024-11-19 15:14:45 -07:00

exec: better error message for windows LookPath

Fixes #1991.

R=golang-dev, bradfitz, rsc
CC=golang-dev
https://golang.org/cl/4648049
This commit is contained in:
Alex Brainman 2011-06-23 09:16:20 +10:00
parent 6b4fb9f85a
commit 123549acb1

View File

@ -38,7 +38,7 @@ func findExecutable(file string, exts []string) (string, os.Error) {
return f, nil
}
}
return ``, ErrNotFound
return ``, os.ENOENT
}
func LookPath(file string) (f string, err os.Error) {