mirror of https://github.com/hyperledger/besu
[PAN-2705] helpful graphql error when an account doesn't exist (#1460)
When we are asking for an account at an address that does not exist the error message should state that the account doesn't exist. Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>pull/2/head
parent
659c79b6d8
commit
0b53195b0b
@ -0,0 +1,22 @@ |
||||
{ |
||||
"request": "{account(blockNumber:\"0x19\", address: \"0xdeadbeefdeadbeefdeadbeefdeadbeefdeadbeef\") { balance } }", |
||||
"response": { |
||||
"data": null, |
||||
"errors": [ |
||||
{ |
||||
"message": "Exception while fetching data (/account) : Account with address 0xdeadbeefdeadbeefdeadbeefdeadbeefdeadbeef does not exist", |
||||
"locations": [ |
||||
{ |
||||
"line": 1, |
||||
"column": 2 |
||||
} |
||||
], |
||||
"path": [ |
||||
"account" |
||||
] |
||||
} |
||||
] |
||||
}, |
||||
"statusCode": 400 |
||||
} |
||||
|
@ -0,0 +1,22 @@ |
||||
{ |
||||
"request": "{account(address: \"0xdeaff00ddeaff00ddeaff00ddeaff00ddeaff00d\") { balance } }", |
||||
"response": { |
||||
"data": null, |
||||
"errors": [ |
||||
{ |
||||
"message": "Exception while fetching data (/account) : Account with address 0xdeaff00ddeaff00ddeaff00ddeaff00ddeaff00d does not exist", |
||||
"locations": [ |
||||
{ |
||||
"line": 1, |
||||
"column": 2 |
||||
} |
||||
], |
||||
"path": [ |
||||
"account" |
||||
] |
||||
} |
||||
] |
||||
}, |
||||
"statusCode": 400 |
||||
} |
||||
|
Loading…
Reference in new issue