diff options
author | Sebastian <sebasjm@gmail.com> | 2024-04-01 14:03:50 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2024-04-01 14:03:50 -0300 |
commit | 2c1f3ffec19e95716a57647f35c7bd68e8565e5a (patch) | |
tree | 729d00208a9c0c59fb18858e1f1b7c2e770cc224 /packages/taler-util/src/http-client/bank-conversion.ts | |
parent | 7eb0f8a0a5c1c6f4bf3d19b3b37da6d7c7b3c5e1 (diff) | |
download | wallet-core-2c1f3ffec19e95716a57647f35c7bd68e8565e5a.tar.xz |
fix #8681
Diffstat (limited to 'packages/taler-util/src/http-client/bank-conversion.ts')
-rw-r--r-- | packages/taler-util/src/http-client/bank-conversion.ts | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/packages/taler-util/src/http-client/bank-conversion.ts b/packages/taler-util/src/http-client/bank-conversion.ts index 3db9df101..cb14d8b34 100644 --- a/packages/taler-util/src/http-client/bank-conversion.ts +++ b/packages/taler-util/src/http-client/bank-conversion.ts @@ -18,7 +18,7 @@ * Imports. */ import { AmountJson, Amounts } from "../amounts.js"; -import { HttpRequestLibrary } from "../http-common.js"; +import { HttpRequestLibrary, readTalerErrorResponse } from "../http-common.js"; import { HttpStatusCode } from "../http-status-codes.js"; import { createPlatformHttpLib } from "../http.js"; import { LibtoolVersion } from "../libtool-version.js"; @@ -94,7 +94,7 @@ export class TalerBankConversionHttpClient { case HttpStatusCode.NotImplemented: return opKnownHttpFailure(resp.status, resp); default: - return opUnknownFailure(resp, await resp.text()); + return opUnknownFailure(resp, await readTalerErrorResponse(resp)); } } @@ -138,7 +138,7 @@ export class TalerBankConversionHttpClient { case HttpStatusCode.NotImplemented: return opKnownHttpFailure(resp.status, resp); default: - return opUnknownFailure(resp, await resp.text()); + return opUnknownFailure(resp, await readTalerErrorResponse(resp)); } } @@ -185,7 +185,7 @@ export class TalerBankConversionHttpClient { case HttpStatusCode.NotImplemented: return opKnownHttpFailure(resp.status, resp); default: - return opUnknownFailure(resp, await resp.text()); + return opUnknownFailure(resp, await readTalerErrorResponse(resp)); } } @@ -217,7 +217,7 @@ export class TalerBankConversionHttpClient { case HttpStatusCode.NotImplemented: return opKnownHttpFailure(resp.status, resp); default: - return opUnknownFailure(resp, await resp.text()); + return opUnknownFailure(resp, await readTalerErrorResponse(resp)); } } } |