uapi: make ipcerror conform to interface

This commit is contained in:
Jason A. Donenfeld 2019-03-10 02:49:27 +01:00
parent c2a2b8d739
commit 3dd9a0535f

View File

@ -21,11 +21,11 @@ type IPCError struct {
int64
}
func (s *IPCError) Error() string {
func (s IPCError) Error() string {
return fmt.Sprintf("IPC error: %d", s.int64)
}
func (s *IPCError) ErrorCode() int64 {
func (s IPCError) ErrorCode() int64 {
return s.int64
}