anastasis: more verbose hint

This commit is contained in:
Florian Dold 2021-11-02 17:22:11 +01:00
parent fdc36b4fb7
commit 03518ced48
No known key found for this signature in database
GPG Key ID: D2E4F00F29D02A4B
2 changed files with 9 additions and 2 deletions

View File

@ -570,7 +570,7 @@ async function uploadSecret(
if (resp.status !== 204) {
return {
code: TalerErrorCode.ANASTASIS_REDUCER_NETWORK_FAILED,
hint: "could not upload policy",
hint: `could not upload truth (HTTP status ${resp.status})`,
};
}
@ -631,7 +631,7 @@ async function uploadSecret(
if (resp.status !== 204) {
return {
code: TalerErrorCode.ANASTASIS_REDUCER_NETWORK_FAILED,
hint: "could not upload policy",
hint: `could not upload policy (http status ${resp.status})`,
};
}
let policyVersion = 0;

View File

@ -73,7 +73,14 @@ export interface ReducerStateBackup {
*/
policy_providers?: PolicyProvider[];
success_details?: SuccessDetails;
/**
* Currently requested payments.
*
* List of taler://pay URIs.
*/
payments?: string[];
policy_payment_requests?: {
payto: string;
provider: string;