Skip to content

Commit

Permalink
Update internal/safety/safety.go
Browse files Browse the repository at this point in the history
Co-authored-by: Rintaro Okamura <[email protected]>
  • Loading branch information
kpango and rinx authored Feb 4, 2021
1 parent b4d44d3 commit 9e71269
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/safety/safety.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ func recoverFunc(fn func() error, withPanic bool) func() error {
case runtime.Error:
err = errors.ErrRuntimeError(err, x)
if withPanic {
log.Errorf("recovered but this thread going to panic: the reason is runtimer.Error\nerror: %v\ninfo:\n%s\nstacktrace:\n%s", err, info.Get().String(), stack)
log.Errorf("recovered but this thread is going to panic: the reason is runtimer.Error\nerror: %v\ninfo:\n%s\nstacktrace:\n%s", err, info.Get().String(), stack)

panic(err)
}
Expand Down

0 comments on commit 9e71269

Please sign in to comment.