From 03518ced4816ec9be0fcebf2a04bd0ef0cbdb8a6 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Tue, 2 Nov 2021 17:22:11 +0100 Subject: anastasis: more verbose hint --- packages/anastasis-core/src/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'packages/anastasis-core/src/index.ts') diff --git a/packages/anastasis-core/src/index.ts b/packages/anastasis-core/src/index.ts index 9bb4e347a..4323df9c2 100644 --- a/packages/anastasis-core/src/index.ts +++ b/packages/anastasis-core/src/index.ts @@ -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; -- cgit v1.2.3