From b709997d78a9504d1d9a14eb2dffae327cd69238 Mon Sep 17 00:00:00 2001 From: Ian Gudger Date: Thu, 3 Jan 2019 13:52:30 -0800 Subject: [PATCH] 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 --- pkg/abi/linux/errors.go | 4 ++-- 1 file 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 }