From 2b1f0dada7602ce8746d132ec68821fb47bf23d0 Mon Sep 17 00:00:00 2001 From: finn Date: Sat, 19 Mar 2022 16:57:19 -0700 Subject: [PATCH] don't panic if we can't unmarshal a message from signald --- cmd/signaldctl/cmd/subscribe.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/signaldctl/cmd/subscribe.go b/cmd/signaldctl/cmd/subscribe.go index dfa0638..b649b22 100644 --- a/cmd/signaldctl/cmd/subscribe.go +++ b/cmd/signaldctl/cmd/subscribe.go @@ -54,7 +54,7 @@ var ( var data v1.IncomingMessage err := json.Unmarshal(msg.Data, &data) if err != nil { - panic(err) + continue } if data.DataMessage == nil {