uapi: make ipcerror conform to interface
This commit is contained in:
parent
c2a2b8d739
commit
3dd9a0535f
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user