From 8a70edb2f8e235c3462127b0aa4e1b65aa1aee0b Mon Sep 17 00:00:00 2001 From: Sebastian Date: Mon, 9 Jan 2023 20:09:54 -0300 Subject: add 'when' to error-detail and remove error as normal response when doing backup --- packages/taler-util/src/wallet-types.ts | 2 ++ 1 file changed, 2 insertions(+) (limited to 'packages/taler-util/src/wallet-types.ts') diff --git a/packages/taler-util/src/wallet-types.ts b/packages/taler-util/src/wallet-types.ts index 06edfe285..367d9c4c9 100644 --- a/packages/taler-util/src/wallet-types.ts +++ b/packages/taler-util/src/wallet-types.ts @@ -249,6 +249,7 @@ export interface ConfirmPayResultPending { export const codecForTalerErrorDetail = (): Codec => buildCodecForObject() .property("code", codecForNumber()) + .property("when", codecForString()) .property("hint", codecOptional(codecForString())) .build("TalerErrorDetail"); @@ -537,6 +538,7 @@ export interface WalletDiagnostics { export interface TalerErrorDetail { code: TalerErrorCode; + when: string; hint?: string; [x: string]: unknown; } -- cgit v1.2.3