Skip to content

Commit

Permalink
fix: panic 210 stringer panic
Browse files Browse the repository at this point in the history
  • Loading branch information
blacktop committed Jul 5, 2024
1 parent 40c223c commit f5365f3
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions pkg/crashlog/ips.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit f5365f3

Please sign in to comment.