commit 00e3ab24e82fed54650bec9e9f37e53de524c780
parent f94a88d897bf0b992735ee5cc6f9eb3973bca5c2
Author: Florian Dold <florian@dold.me>
Date: Fri, 29 May 2026 15:06:51 +0200
-error handling
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/packages/taler-util/src/operation.ts b/packages/taler-util/src/operation.ts
@@ -280,7 +280,7 @@ export function succeedOrThrow<R>(result: OperationResult<R, unknown>): R {
requestUrl: resp.requestUrl,
requestMethod: resp.requestMethod,
httpStatusCode: resp.status,
- errorResponse: resp,
+ errorResponse: result.detail,
} as any);
}
throw TalerError.fromException(result);