fix errorcallback in publish
This commit is contained in:
parent
4166419823
commit
22c4f41066
1 changed files with 1 additions and 6 deletions
|
@ -308,12 +308,7 @@ lbry.publish = function(params, fileListedCallback, publishedCallback, errorCall
|
||||||
// lbry.getFilesInfo() during the publish process.
|
// lbry.getFilesInfo() during the publish process.
|
||||||
|
|
||||||
// Use ES6 named arguments instead of directly passing param dict?
|
// Use ES6 named arguments instead of directly passing param dict?
|
||||||
lbry.call('publish', params, publishedCallback, (errorInfo) => {
|
lbry.call('publish', params, publishedCallback, errorCallback);
|
||||||
errorCallback({
|
|
||||||
name: fault.fault,
|
|
||||||
message: fault.faultString,
|
|
||||||
});
|
|
||||||
});
|
|
||||||
if (fileListedCallback) {
|
if (fileListedCallback) {
|
||||||
lbry.getFileInfoWhenListed(params.name, function(fileInfo) {
|
lbry.getFileInfoWhenListed(params.name, function(fileInfo) {
|
||||||
fileListedCallback(fileInfo);
|
fileListedCallback(fileInfo);
|
||||||
|
|
Loading…
Add table
Reference in a new issue