Fix #1012
This commit is contained in:
parent
47cd0193b0
commit
07655ebd1b
1 changed files with 1 additions and 1 deletions
|
@ -15,7 +15,7 @@ jsonrpc.call = (
|
||||||
return response.json().then(json => {
|
return response.json().then(json => {
|
||||||
let error;
|
let error;
|
||||||
if (json.error) {
|
if (json.error) {
|
||||||
error = new Error(json.error);
|
error = new Error(json.error.message);
|
||||||
} else {
|
} else {
|
||||||
error = new Error('Protocol error with unknown response signature');
|
error = new Error('Protocol error with unknown response signature');
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue