From 80fbbfdd016c3d7a5af373ea19b9fa8050420a7e Mon Sep 17 00:00:00 2001 From: Amaury Martiny Date: Mon, 30 Nov 2020 12:00:08 +0100 Subject: [PATCH] Better panic message --- types/errors/abci.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/errors/abci.go b/types/errors/abci.go index f297e4ca698..09827656110 100644 --- a/types/errors/abci.go +++ b/types/errors/abci.go @@ -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