diff options
Diffstat (limited to 'src/pkg/exec')
| -rw-r--r-- | src/pkg/exec/lp_plan9.go | 2 | ||||
| -rw-r--r-- | src/pkg/exec/lp_unix.go | 2 | ||||
| -rw-r--r-- | src/pkg/exec/lp_windows.go | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/src/pkg/exec/lp_plan9.go b/src/pkg/exec/lp_plan9.go index d0912f9e9e..c4e2a7a0f9 100644 --- a/src/pkg/exec/lp_plan9.go +++ b/src/pkg/exec/lp_plan9.go @@ -10,7 +10,7 @@ import ( ) // ErrNotFound is the error resulting if a path search failed to find an executable file. -var ErrNotFound = os.ErrorString("executable file not found in $path") +var ErrNotFound = os.NewError("executable file not found in $path") func findExecutable(file string) os.Error { d, err := os.Stat(file) diff --git a/src/pkg/exec/lp_unix.go b/src/pkg/exec/lp_unix.go index 3fc3be8324..cdf7207688 100644 --- a/src/pkg/exec/lp_unix.go +++ b/src/pkg/exec/lp_unix.go @@ -10,7 +10,7 @@ import ( ) // ErrNotFound is the error resulting if a path search failed to find an executable file. -var ErrNotFound = os.ErrorString("executable file not found in $PATH") +var ErrNotFound = os.NewError("executable file not found in $PATH") func findExecutable(file string) os.Error { d, err := os.Stat(file) diff --git a/src/pkg/exec/lp_windows.go b/src/pkg/exec/lp_windows.go index 1b3acc42bf..401c693b41 100644 --- a/src/pkg/exec/lp_windows.go +++ b/src/pkg/exec/lp_windows.go @@ -10,7 +10,7 @@ import ( ) // ErrNotFound is the error resulting if a path search failed to find an executable file. -var ErrNotFound = os.ErrorString("executable file not found in %PATH%") +var ErrNotFound = os.NewError("executable file not found in %PATH%") func chkStat(file string) os.Error { d, err := os.Stat(file) |
