Merge pull request #1046 from lbryio/issue/1007
Fix publish errors show [object Object] error instead of actual error
This commit is contained in:
commit
2e26bfc2ee
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