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
This commit is contained in:
parent
d89836fe51
commit
b709997d78
|
@ -25,8 +25,8 @@ func (e *Errno) Number() int {
|
||||||
return e.number
|
return e.number
|
||||||
}
|
}
|
||||||
|
|
||||||
// Error implements error.Error.
|
// String implements fmt.Stringer.String.
|
||||||
func (e *Errno) Error() string {
|
func (e *Errno) String() string {
|
||||||
return e.name
|
return e.name
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue