From 22c4f41066eb208e642f0575c1a1cd919974356f Mon Sep 17 00:00:00 2001 From: Job Evers-Meltzer Date: Tue, 17 Jan 2017 21:37:24 -0600 Subject: [PATCH] fix errorcallback in publish --- js/lbry.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/js/lbry.js b/js/lbry.js index 12ba61707..65fb4e821 100644 --- a/js/lbry.js +++ b/js/lbry.js @@ -308,12 +308,7 @@ lbry.publish = function(params, fileListedCallback, publishedCallback, errorCall // lbry.getFilesInfo() during the publish process. // Use ES6 named arguments instead of directly passing param dict? - lbry.call('publish', params, publishedCallback, (errorInfo) => { - errorCallback({ - name: fault.fault, - message: fault.faultString, - }); - }); + lbry.call('publish', params, publishedCallback, errorCallback); if (fileListedCallback) { lbry.getFileInfoWhenListed(params.name, function(fileInfo) { fileListedCallback(fileInfo);