Make lbry.publish() call error callback

This commit is contained in:
Alex Liebowitz 2016-07-26 05:04:44 -04:00
parent 7f258b2a14
commit 6d23e7af51

View file

@ -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,
});