]> git.ipfire.org Git - thirdparty/wireguard-go.git/commitdiff
uapi: report endpoint error
authorJason A. Donenfeld <Jason@zx2c4.com>
Tue, 19 Mar 2019 06:34:04 +0000 (00:34 -0600)
committerJason A. Donenfeld <Jason@zx2c4.com>
Tue, 19 Mar 2019 06:34:04 +0000 (00:34 -0600)
device/uapi.go

index 0cb34ea2b82f1f253d5167162fdfca0213240cd7..195bd81cb91221ff35bf766c3b16360c1a7592fe 100644 (file)
@@ -298,7 +298,7 @@ func (device *Device) IpcSetOperation(socket *bufio.Reader) *IPCError {
                                }()
 
                                if err != nil {
-                                       logError.Println("Failed to set endpoint:", value)
+                                       logError.Println("Failed to set endpoint:", err, ":", value)
                                        return &IPCError{ipc.IpcErrorInvalid}
                                }