diff options
author | Taylor Gerring <taylor.gerring@gmail.com> | 2015-03-27 02:39:40 +0800 |
---|---|---|
committer | Taylor Gerring <taylor.gerring@gmail.com> | 2015-03-27 02:39:40 +0800 |
commit | e21ce9a9b48a651a704a92369712c17113d92ad6 (patch) | |
tree | 8de7d6fd44e085f87cd173e894f8c3d30138a4de /rpc/args.go | |
parent | f68ca2b6e6b3dafb9f40f5c73ecca3168eb5a090 (diff) | |
download | dexon-e21ce9a9b48a651a704a92369712c17113d92ad6.tar dexon-e21ce9a9b48a651a704a92369712c17113d92ad6.tar.gz dexon-e21ce9a9b48a651a704a92369712c17113d92ad6.tar.bz2 dexon-e21ce9a9b48a651a704a92369712c17113d92ad6.tar.lz dexon-e21ce9a9b48a651a704a92369712c17113d92ad6.tar.xz dexon-e21ce9a9b48a651a704a92369712c17113d92ad6.tar.zst dexon-e21ce9a9b48a651a704a92369712c17113d92ad6.zip |
DbHexArgs tests
Diffstat (limited to 'rpc/args.go')
-rw-r--r-- | rpc/args.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/rpc/args.go b/rpc/args.go index 78e60c1f4..459c6546b 100644 --- a/rpc/args.go +++ b/rpc/args.go @@ -567,10 +567,10 @@ func (args *DbHexArgs) UnmarshalJSON(b []byte) (err error) { func (a *DbHexArgs) requirements() error { if len(a.Database) == 0 { - return NewInvalidTypeError("Database", "cannot be blank") + return NewValidationError("Database", "cannot be blank") } if len(a.Key) == 0 { - return NewInvalidTypeError("Key", "cannot be blank") + return NewValidationError("Key", "cannot be blank") } return nil } |