From 48347494230c6d1610cfd1c0bef23924e7428288 Mon Sep 17 00:00:00 2001 From: jessop Date: Fri, 18 Sep 2020 13:09:50 -0400 Subject: [PATCH] propagate sync password error --- dist/bundle.es.js | 2 +- dist/bundle.js | 2 +- src/redux/actions/sync.js | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/dist/bundle.es.js b/dist/bundle.es.js index ec883e9..02e2e57 100644 --- a/dist/bundle.es.js +++ b/dist/bundle.es.js @@ -954,7 +954,7 @@ function doGetSync(passedPassword, callback) { handleCallback(syncAttemptError); } else if (data.hasSyncedWallet) { - const error = 'Error getting synced wallet'; + const error = syncAttemptError && syncAttemptError.message || 'Error getting synced wallet'; dispatch({ type: GET_SYNC_FAILED, data: { diff --git a/dist/bundle.js b/dist/bundle.js index 61213d3..4500f0e 100644 --- a/dist/bundle.js +++ b/dist/bundle.js @@ -3695,7 +3695,7 @@ function doGetSync(passedPassword, callback) { handleCallback(syncAttemptError); } else if (data.hasSyncedWallet) { - var error = 'Error getting synced wallet'; + var error = syncAttemptError && syncAttemptError.message || 'Error getting synced wallet'; dispatch({ type: constants_action_types__WEBPACK_IMPORTED_MODULE_0__["GET_SYNC_FAILED"], data: { diff --git a/src/redux/actions/sync.js b/src/redux/actions/sync.js index eaf9cec..22144dd 100644 --- a/src/redux/actions/sync.js +++ b/src/redux/actions/sync.js @@ -152,7 +152,8 @@ export function doGetSync(passedPassword, callback) { handleCallback(syncAttemptError); } else if (data.hasSyncedWallet) { - const error = 'Error getting synced wallet'; + const error = + (syncAttemptError && syncAttemptError.message) || 'Error getting synced wallet'; dispatch({ type: ACTIONS.GET_SYNC_FAILED, data: {