diff options
author | Sebastian <sebasjm@gmail.com> | 2023-10-17 11:17:18 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2023-10-17 11:17:41 -0300 |
commit | 503cbfbb95828677b83212816951eb501de2a8fe (patch) | |
tree | 9bbb59300069fba59baca66f543c5145911905b5 /packages/web-util | |
parent | aca3bc9423f15354913d0114cafbd4bd1782d801 (diff) | |
download | wallet-core-503cbfbb95828677b83212816951eb501de2a8fe.tar.xz |
bank api now return typed errors for documented errors
Diffstat (limited to 'packages/web-util')
-rw-r--r-- | packages/web-util/src/utils/http-impl.sw.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/web-util/src/utils/http-impl.sw.ts b/packages/web-util/src/utils/http-impl.sw.ts index 5c15475ce..05696105c 100644 --- a/packages/web-util/src/utils/http-impl.sw.ts +++ b/packages/web-util/src/utils/http-impl.sw.ts @@ -148,7 +148,7 @@ function makeTextHandler( requestUrl: string, requestMethod: string, ) { - return async function getJsonFromResponse(): Promise<any> { + return async function getTextFromResponse(): Promise<any> { let respText; try { respText = await response.text(); @@ -160,7 +160,7 @@ function makeTextHandler( requestMethod, httpStatusCode: response.status, }, - "Invalid JSON from HTTP response", + "Invalid text from HTTP response", ); } return respText; |