Make lbry.publish() call error callback
This commit is contained in:
parent
7f258b2a14
commit
6d23e7af51
1 changed files with 1 additions and 1 deletions
|
@ -157,7 +157,7 @@ lbry.revealFile = function(path, callback) {
|
|||
lbry.publish = function(params, callback, errorCallback) {
|
||||
// Use ES6 named arguments instead of directly passing param dict?
|
||||
lbry.call('publish', params, callback, (errorInfo) => {
|
||||
callback({
|
||||
errorCallback({
|
||||
name: fault.fault,
|
||||
message: fault.faultString,
|
||||
});
|
||||
|
|
Loading…
Add table
Reference in a new issue