diff options
Diffstat (limited to 'src/lib/os/error.go')
-rw-r--r-- | src/lib/os/error.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/os/error.go b/src/lib/os/error.go index 3861f0167..d196abfc6 100644 --- a/src/lib/os/error.go +++ b/src/lib/os/error.go @@ -15,7 +15,7 @@ type Error interface { // Error. type ErrorString string func (e ErrorString) String() string { - return e + return string(e) } // NewError converts s to an ErrorString, which satisfies the Error interface. @@ -27,7 +27,7 @@ func NewError(s string) Error { // wrappers to convert the error number into an Error. type Errno int64 func (e Errno) String() string { - return syscall.Errstr(e) + return syscall.Errstr(int64(e)) } // ErrnoToError converts errno to an Error (underneath, an Errno). |