From f2422cd9746910432ee36773a66e726795143010 Mon Sep 17 00:00:00 2001 From: Christopher Goes Date: Thu, 27 Sep 2018 12:48:05 +0200 Subject: [PATCH] Keep code, codespace --- types/errors.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/types/errors.go b/types/errors.go index abb0c3921..266e6d14c 100644 --- a/types/errors.go +++ b/types/errors.go @@ -231,7 +231,11 @@ func (err *sdkError) TraceSDK(format string, args ...interface{}) Error { // Implements ABCIError. func (err *sdkError) Error() string { - return err.cmnError.Error() + return fmt.Sprintf(`ERROR: +Codespace: %d +Code: %d +Message: %#v +`, err.codespace, err.code, err.cmnError.Error()) } // Implements ABCIError.