1
0
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:
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
}