Skip to content

Commit

Permalink
Trim panic stack trace at CatchPanic
Browse files Browse the repository at this point in the history
  • Loading branch information
bw19 committed Oct 13, 2023
1 parent e45e593 commit a761889
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions errors/errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,9 @@ func TraceFull(err error, level int, annotations ...any) error {
if strings.HasPrefix(function, "runtime.") {
continue
}
if function == "utils.CatchPanic" {
break
}
tracedErr.stack = append(tracedErr.stack, &trace{
File: file,
Function: function,
Expand Down

0 comments on commit a761889

Please sign in to comment.