From 5d6ec4c7443e1a69766fa7cf507dbcfe096d52a8 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Thu, 24 Jun 2021 13:17:28 +0200 Subject: improve logging --- src/exchange-tools/taler-auditor-offline.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/exchange-tools') diff --git a/src/exchange-tools/taler-auditor-offline.c b/src/exchange-tools/taler-auditor-offline.c index 81e2bfeb7..7b6d0a893 100644 --- a/src/exchange-tools/taler-auditor-offline.c +++ b/src/exchange-tools/taler-auditor-offline.c @@ -395,11 +395,13 @@ denomination_add_cb ( if (MHD_HTTP_NO_CONTENT != hr->http_status) { fprintf (stderr, - "Upload failed for command %u with status %u: %s (%s)\n", + "Upload failed for command #%u with status %u: %s (%s)\n", (unsigned int) dar->idx, hr->http_status, TALER_ErrorCode_get_hint (hr->ec), - hr->hint); + NULL != hr->hint + ? hr->hint + : "no hint provided"); global_ret = 42; } GNUNET_CONTAINER_DLL_remove (dar_head, -- cgit v1.2.3