aeternity / aepp-sdk-go

Golang SDK to interact with the Æternity blockchain
ISC License
18 stars 10 forks source link

terminal.go:getErrorReason() does not unwrap Error Reasons properly #18

Closed randomshinichi closed 5 years ago

randomshinichi commented 5 years ago

v.FieldByName("Reason") is actually a pointer to something else. But the code in terminal.go already assumes that it is the Reason already, as a string, and is ready for printing.

This results in useless error messages when the node responds with "Account not found", for example.

randomshinichi commented 5 years ago

Better described in #46