diff options
author | Ian Gudger <igudger@google.com> | 2019-01-03 13:52:30 -0800 |
---|---|---|
committer | Shentubot <shentubot@google.com> | 2019-01-03 13:53:43 -0800 |
commit | b709997d78a9504d1d9a14eb2dffae327cd69238 (patch) | |
tree | 9bef1f6861e76a5fe4f8116df43611a173cb1a9b /pkg | |
parent | d89836fe51eeef4920439d6d2433f2ee6f37aec9 (diff) |
Rename linux.Errno.Error to linux.Errno.String.
Using linux.Errno as an error doesn't work very well as none of the sentry code
expects error to contain a linux.Errno.
This moves using syserr.Error.ToLinux as an error in a syscall handler from a
runtime error to a compile error.
PiperOrigin-RevId: 227744312
Change-Id: Iea63108a5b198296c908614e09c01733dd684da0
Diffstat (limited to 'pkg')
-rw-r--r-- | pkg/abi/linux/errors.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/abi/linux/errors.go b/pkg/abi/linux/errors.go index 01e4095b8..e5f6f3f07 100644 --- a/pkg/abi/linux/errors.go +++ b/pkg/abi/linux/errors.go @@ -25,8 +25,8 @@ func (e *Errno) Number() int { return e.number } -// Error implements error.Error. -func (e *Errno) Error() string { +// String implements fmt.Stringer.String. +func (e *Errno) String() string { return e.name } |