get_account fix

This commit is contained in:
Jae Kwon 2015-08-14 14:47:25 -07:00
parent 56b195a899
commit ab24ae1da8
1 changed files with 3 additions and 0 deletions

View File

@ -19,6 +19,9 @@ func get_account() {
Exit(Fmt("Address was not hex: %v", addrHex))
}
res, err := cli.GetAccount(address)
if res == nil {
Exit(Fmt("Account does not exist: %X", address))
}
if err != nil {
Exit(Fmt("Error fetching account: %v", err))
}