diff options
author | Sebastian <sebasjm@gmail.com> | 2023-01-09 20:09:54 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2023-01-09 20:09:54 -0300 |
commit | 8a70edb2f8e235c3462127b0aa4e1b65aa1aee0b (patch) | |
tree | cef85adaff404ecf3ad9ed823c216776bb2871e4 /packages/taler-util/src | |
parent | efb5bf9de465be29de06c30c9e8cd78374b7c118 (diff) | |
download | wallet-core-8a70edb2f8e235c3462127b0aa4e1b65aa1aee0b.tar.xz |
add 'when' to error-detail and remove error as normal response when doing backup
Diffstat (limited to 'packages/taler-util/src')
-rw-r--r-- | packages/taler-util/src/wallet-types.ts | 2 |
1 files changed, 2 insertions, 0 deletions
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<TalerErrorDetail> => buildCodecForObject<TalerErrorDetail>() .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; } |