user ErrNoData from light-client
This commit is contained in:
parent
a3bc96c56b
commit
7b595b3f87
|
@ -1,9 +1,12 @@
|
|||
package commands
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
"github.com/spf13/cobra"
|
||||
|
||||
wire "github.com/tendermint/go-wire"
|
||||
lc "github.com/tendermint/light-client"
|
||||
proofcmd "github.com/tendermint/light-client/commands/proofs"
|
||||
"github.com/tendermint/light-client/proofs"
|
||||
|
||||
|
@ -25,7 +28,9 @@ func doAccountQuery(cmd *cobra.Command, args []string) error {
|
|||
|
||||
acc := new(btypes.Account)
|
||||
proof, err := proofcmd.GetAndParseAppProof(key, &acc)
|
||||
if err != nil {
|
||||
if lc.IsNoDataErr(err) {
|
||||
return fmt.Errorf("Account bytes are empty for address %X ", addr)
|
||||
} else if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
hash: 6eb1119dccf2ab4d0adb870a14cb4408047119be53c8ec4afeaa281bd1d2b457
|
||||
updated: 2017-06-15T17:51:21.867322849+02:00
|
||||
updated: 2017-06-20T20:55:16.122030554-04:00
|
||||
imports:
|
||||
- name: github.com/bgentry/speakeasy
|
||||
version: 4aabc24848ce5fd31929f7d1e4ea74d3709c14cd
|
||||
|
@ -127,7 +127,7 @@ imports:
|
|||
- data
|
||||
- data/base58
|
||||
- name: github.com/tendermint/light-client
|
||||
version: 4ad913f2728307ec13a3b602b040c29b6a2117b8
|
||||
version: 5ba3d0bce406b4b4ce694ca4387b9d086ac0c10f
|
||||
subpackages:
|
||||
- certifiers
|
||||
- certifiers/client
|
||||
|
@ -171,7 +171,7 @@ imports:
|
|||
- types
|
||||
- version
|
||||
- name: github.com/tendermint/tmlibs
|
||||
version: 59a77e7bef092eef0e1f9b44c983dc9e35eed0d6
|
||||
version: bd9d0d1637dadf1330e167189d5e5031aadcda6f
|
||||
subpackages:
|
||||
- autofile
|
||||
- cli
|
||||
|
|
Loading…
Reference in New Issue