aboutsummaryrefslogtreecommitdiff
path: root/libgo/go/exec/lp_windows.go
diff options
context:
space:
mode:
Diffstat (limited to 'libgo/go/exec/lp_windows.go')
-rw-r--r--libgo/go/exec/lp_windows.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/libgo/go/exec/lp_windows.go b/libgo/go/exec/lp_windows.go
index 7b56afa..d357575 100644
--- a/libgo/go/exec/lp_windows.go
+++ b/libgo/go/exec/lp_windows.go
@@ -49,7 +49,7 @@ func LookPath(file string) (string, os.Error) {
if f, ok := canExec(file, exts); ok {
return f, nil
}
- return ``, &os.PathError{"lookpath", file, os.ENOENT}
+ return ``, &PathError{file}
}
if pathenv := os.Getenv(`PATH`); pathenv == `` {
if f, ok := canExec(`.\`+file, exts); ok {
@@ -62,5 +62,5 @@ func LookPath(file string) (string, os.Error) {
}
}
}
- return ``, &os.PathError{"lookpath", file, os.ENOENT}
+ return ``, &PathError{file}
}