Skip to content

Commit

Permalink
Better panic message
Browse files Browse the repository at this point in the history
  • Loading branch information
amaury1093 committed Nov 30, 2020
1 parent 1daf62f commit 80fbbfd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion types/errors/abci.go
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ func errIsNil(err error) bool {
// simply returned.
func Redact(err error) error {
if ErrPanic.Is(err) {
return ErrPanic
return Wrapf(ErrPanic, "panic message redacted to hide potentially sensitive system info")
}
if abciCode(err) == internalABCICode {
return errInternal
Expand Down

0 comments on commit 80fbbfd

Please sign in to comment.