Skip to content

Commit

Permalink
merge NodeOutOfSync and ServerError
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterBenc committed Aug 3, 2020
1 parent e6e3279 commit 6f79eae
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
1 change: 0 additions & 1 deletion app/frontend/translations.ts
Expand Up @@ -64,7 +64,6 @@ const translations = {
'NetworkError: Request to our servers has failed. Please check your network connection and if the problem persists, contact us.',
ServerError: () =>
'ServerError: Our servers are probably down. Please try again later and if the problem persists, contact us.',
NodeOutOfSync: () => 'Service is temporarily unavailable, please try again in 1-2 minutes.',
}

function getTranslation(code, params = {}) {
Expand Down
2 changes: 0 additions & 2 deletions app/frontend/wallet/helpers/request.ts
Expand Up @@ -20,8 +20,6 @@ const request = async function request(url, method = 'GET', body = null, headers
if (response.status === 429) {
await sleep(DELAY_AFTER_TOO_MANY_REQUESTS)
return request(url, method, body, headers)
} else if (response.status === 503) {
throw NamedError('NodeOutOfSync')
} else if (response.status >= 500) {
throw NamedError(
'ServerError',
Expand Down

0 comments on commit 6f79eae

Please sign in to comment.