Keep code, codespace

This commit is contained in:
Christopher Goes 2018-09-27 12:48:05 +02:00
parent fd36abfe05
commit f2422cd974
1 changed files with 5 additions and 1 deletions

View File

@ -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.