From 62f736fbd047194aaee8cb68d2072ca316eec550 Mon Sep 17 00:00:00 2001 From: Jae Kwon Date: Thu, 21 Dec 2017 17:56:57 -0800 Subject: [PATCH] Update comment on usage of sdkErrors --- errors/errors.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/errors/errors.go b/errors/errors.go index 8f6113f60..f2d6f5e20 100644 --- a/errors/errors.go +++ b/errors/errors.go @@ -96,10 +96,7 @@ func NewABCIError(code uint32, log string) ABCIError { } ``` - Then, to get the ABCI code/log: - - 1. Check if err.(ABCIError) - 2. Check if err.(causer).Cause().(ABCIError) + Then, to get the ABCI code/log, use ABCIErrorCause() */ type sdkError struct {