mirror of
https://git.zx2c4.com/wireguard-go
synced 2024-11-15 01:05:15 +01:00
uapi: make ipcerror conform to interface
This commit is contained in:
parent
c2a2b8d739
commit
3dd9a0535f
@ -21,11 +21,11 @@ type IPCError struct {
|
|||||||
int64
|
int64
|
||||||
}
|
}
|
||||||
|
|
||||||
func (s *IPCError) Error() string {
|
func (s IPCError) Error() string {
|
||||||
return fmt.Sprintf("IPC error: %d", s.int64)
|
return fmt.Sprintf("IPC error: %d", s.int64)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (s *IPCError) ErrorCode() int64 {
|
func (s IPCError) ErrorCode() int64 {
|
||||||
return s.int64
|
return s.int64
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user