Skip to content

Commit

Permalink
fix: check internalABCICodespace (#10)
Browse files Browse the repository at this point in the history
* fix: check UndefinedCodespace too

* Update types/errors/abci.go

Co-authored-by: Yongwoo Lee <[email protected]>

Co-authored-by: Yongwoo Lee <[email protected]>
  • Loading branch information
kfangw and Yongwoo Lee authored May 21, 2020
1 parent c95584b commit 266c79e
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 @@ -162,7 +162,7 @@ func Redact(err error) error {
if ErrPanic.Is(err) {
return errors.New(internalABCILog)
}
if abciCode(err) == internalABCICode {
if abciCode(err) == internalABCICode && abciCodespace(err) == internalABCICodespace{
return errors.New(internalABCILog)
}
return err
Expand Down

0 comments on commit 266c79e

Please sign in to comment.