From 8e4d1e3f2cc62ccf3e8eaaf5e9acc42accad3033 Mon Sep 17 00:00:00 2001 From: Brad Fitzpatrick Date: Mon, 12 Apr 2021 10:32:57 -0700 Subject: [PATCH] ipn: include err in Notify decode fatal path Signed-off-by: Brad Fitzpatrick --- ipn/message.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ipn/message.go b/ipn/message.go index 5db11d8cd..9a8a327f1 100644 --- a/ipn/message.go +++ b/ipn/message.go @@ -243,7 +243,7 @@ func (bc *BackendClient) GotNotifyMsg(b []byte) { } n := Notify{} if err := json.Unmarshal(b, &n); err != nil { - log.Fatalf("BackendClient.Notify: cannot decode message (length=%d)\n%#v", len(b), string(b)) + log.Fatalf("BackendClient.Notify: cannot decode message (length=%d, %#q): %v", len(b), b, err) } if n.Version != version.Long && !bc.AllowVersionSkew { vs := fmt.Sprintf("GotNotify: Version mismatch! frontend=%#v backend=%#v",