From f5365f3ee52cc2e658df2612b7f8b27ab190f13e Mon Sep 17 00:00:00 2001 From: blacktop Date: Fri, 5 Jul 2024 15:53:23 -0600 Subject: [PATCH] fix: panic 210 stringer panic --- pkg/crashlog/ips.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pkg/crashlog/ips.go b/pkg/crashlog/ips.go index 2318f7f55..85ea7ad1a 100644 --- a/pkg/crashlog/ips.go +++ b/pkg/crashlog/ips.go @@ -1130,6 +1130,13 @@ func (i *Ips) String() string { switch i.Header.BugType { case "Panic", "210": out = fmt.Sprintf("[%s] - %s - %s %s\n\n", colorTime(i.Header.Timestamp.Format("02Jan2006 15:04:05")), colorError(i.Header.BugTypeDesc), i.Payload.Product, i.Payload.Build) + if i.Payload.panic210 == nil { + var err error + i.Payload.panic210, err = parsePanicString210(i.Payload.PanicString) + if err != nil { + log.Errorf("failed to parse panic string: %w", err) + } + } if i.Config.Verbose { out += fmt.Sprintf("%s: %s\n", colorField("Panic String"), i.Payload.PanicString) } else {