send lbryfirst error to desktop for handling
This commit is contained in:
parent
ff1f95c101
commit
e6d89b0690
2 changed files with 16 additions and 2 deletions
8
dist/bundle.es.js
vendored
8
dist/bundle.es.js
vendored
|
@ -4726,7 +4726,13 @@ const doPublish = (success, fail) => (dispatch, getState) => {
|
|||
if (!useLBRYUploader) {
|
||||
return success(response);
|
||||
}
|
||||
return lbryFirstProxy.upload(publishPayload).then(success(response), success(response));
|
||||
|
||||
return lbryFirstProxy.upload(publishPayload).then(() => {
|
||||
// Return original publish response so app treats it like a normal publish
|
||||
return success(response);
|
||||
}).catch(error => {
|
||||
return success(response, error);
|
||||
});
|
||||
}, fail);
|
||||
};
|
||||
|
||||
|
|
|
@ -361,7 +361,15 @@ export const doPublish = (success: Function, fail: Function) => (
|
|||
if (!useLBRYUploader) {
|
||||
return success(response);
|
||||
}
|
||||
return LbryFirst.upload(publishPayload).then(success(response), success(response));
|
||||
|
||||
return LbryFirst.upload(publishPayload)
|
||||
.then(() => {
|
||||
// Return original publish response so app treats it like a normal publish
|
||||
return success(response);
|
||||
})
|
||||
.catch(error => {
|
||||
return success(response, error);
|
||||
});
|
||||
}, fail);
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue