Merge pull request #1046 from lbryio/issue/1007

Fix publish errors show [object Object] error instead of actual error
This commit is contained in:
Igor Gassmann 2018-02-25 22:18:51 -05:00 committed by GitHub
commit 2e26bfc2ee
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -15,7 +15,7 @@ jsonrpc.call = (
return response.json().then(json => {
let error;
if (json.error) {
error = new Error(json.error);
error = new Error(json.error.message);
} else {
error = new Error('Protocol error with unknown response signature');
}