diff options
author | Sebastian <sebasjm@gmail.com> | 2023-04-07 18:46:25 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2023-04-07 18:46:25 -0300 |
commit | cfe7129c4ecaa3057d5e47040f0a9efd8ed0317e (patch) | |
tree | c4a282300fec9be588bdb90bc7b94ab9e21ddfd0 /packages/demobank-ui/src/utils.ts | |
parent | 958747bd08172ce00bc84ea3c543eac414a1d39b (diff) | |
download | wallet-core-cfe7129c4ecaa3057d5e47040f0a9efd8ed0317e.tar.xz |
adding unreadable http response case and removing deprecated fields
Diffstat (limited to 'packages/demobank-ui/src/utils.ts')
-rw-r--r-- | packages/demobank-ui/src/utils.ts | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/packages/demobank-ui/src/utils.ts b/packages/demobank-ui/src/utils.ts index 0796db65d..af0329555 100644 --- a/packages/demobank-ui/src/utils.ts +++ b/packages/demobank-ui/src/utils.ts @@ -151,6 +151,14 @@ export function buildRequestErrorMessage( }; break; } + case ErrorType.UNREADABLE: { + result = { + title: i18n.str`Unexpected error`, + description: `Response from ${cause.info?.url} is unreadable, status: ${cause.status}`, + debug: JSON.stringify(cause), + }; + break; + } case ErrorType.UNEXPECTED: { result = { title: i18n.str`Unexpected error`, |