Merge pull request #104 from lbryio/sync-password-error

propagate sync password error
This commit is contained in:
Sean Yesmunt 2020-09-21 12:57:48 -04:00 committed by GitHub
commit db0663fcc4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 3 deletions

2
dist/bundle.es.js vendored
View file

@ -954,7 +954,7 @@ function doGetSync(passedPassword, callback) {
handleCallback(syncAttemptError); handleCallback(syncAttemptError);
} else if (data.hasSyncedWallet) { } else if (data.hasSyncedWallet) {
const error = 'Error getting synced wallet'; const error = syncAttemptError && syncAttemptError.message || 'Error getting synced wallet';
dispatch({ dispatch({
type: GET_SYNC_FAILED, type: GET_SYNC_FAILED,
data: { data: {

2
dist/bundle.js vendored
View file

@ -3695,7 +3695,7 @@ function doGetSync(passedPassword, callback) {
handleCallback(syncAttemptError); handleCallback(syncAttemptError);
} else if (data.hasSyncedWallet) { } else if (data.hasSyncedWallet) {
var error = 'Error getting synced wallet'; var error = syncAttemptError && syncAttemptError.message || 'Error getting synced wallet';
dispatch({ dispatch({
type: constants_action_types__WEBPACK_IMPORTED_MODULE_0__["GET_SYNC_FAILED"], type: constants_action_types__WEBPACK_IMPORTED_MODULE_0__["GET_SYNC_FAILED"],
data: { data: {

View file

@ -152,7 +152,8 @@ export function doGetSync(passedPassword, callback) {
handleCallback(syncAttemptError); handleCallback(syncAttemptError);
} else if (data.hasSyncedWallet) { } else if (data.hasSyncedWallet) {
const error = 'Error getting synced wallet'; const error =
(syncAttemptError && syncAttemptError.message) || 'Error getting synced wallet';
dispatch({ dispatch({
type: ACTIONS.GET_SYNC_FAILED, type: ACTIONS.GET_SYNC_FAILED,
data: { data: {