Update comment on usage of sdkErrors
This commit is contained in:
parent
5c06e56c24
commit
62f736fbd0
|
@ -96,10 +96,7 @@ func NewABCIError(code uint32, log string) ABCIError {
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
Then, to get the ABCI code/log:
|
Then, to get the ABCI code/log, use ABCIErrorCause()
|
||||||
|
|
||||||
1. Check if err.(ABCIError)
|
|
||||||
2. Check if err.(causer).Cause().(ABCIError)
|
|
||||||
|
|
||||||
*/
|
*/
|
||||||
type sdkError struct {
|
type sdkError struct {
|
||||||
|
|
Loading…
Reference in New Issue