aboutsummaryrefslogtreecommitdiff
path: root/src/pkg/exec
diff options
context:
space:
mode:
authorRobert Griesemer <gri@golang.org>2011-06-22 10:52:47 -0700
committerRobert Griesemer <gri@golang.org>2011-06-22 10:52:47 -0700
commit712fb6dcd31ec4f861e402c99f25991ed39f8da5 (patch)
tree9101e38fbe4df8257dca9264033f5c279d8a822b /src/pkg/exec
parent55b0662465e92d6141af0055ee5105d776cafe4e (diff)
downloadgo-712fb6dcd31ec4f861e402c99f25991ed39f8da5.tar.xz
os.Error API: don't export os.ErrorString, use os.NewError consistently
This is a core API change. 1) gofix misc src 2) Manual adjustments to the following files under src/pkg: gob/decode.go rpc/client.go os/error.go io/io.go bufio/bufio.go http/request.go websocket/client.go as well as: src/cmd/gofix/testdata/*.go.in (reverted) test/fixedbugs/bug243.go 3) Implemented gofix patch (oserrorstring.go) and test case (oserrorstring_test.go) Compiles and runs all tests. R=r, rsc, gri CC=golang-dev https://golang.org/cl/4607052
Diffstat (limited to 'src/pkg/exec')
-rw-r--r--src/pkg/exec/lp_plan9.go2
-rw-r--r--src/pkg/exec/lp_unix.go2
-rw-r--r--src/pkg/exec/lp_windows.go2
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)