summaryrefslogtreecommitdiff
path: root/src/kyclogic
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2023-11-12 16:17:55 +0100
committerChristian Grothoff <christian@grothoff.org>2023-11-12 16:17:55 +0100
commit0255fb4a2357392f1676e3a48d5dd81168f2f9d1 (patch)
tree79bb45f6c6753e247598895e342269c2d48a5bd8 /src/kyclogic
parent622eb624b350a89918f92fc1084b67273e5e9eb4 (diff)
downloadexchange-0255fb4a2357392f1676e3a48d5dd81168f2f9d1.tar.gz
exchange-0255fb4a2357392f1676e3a48d5dd81168f2f9d1.tar.bz2
exchange-0255fb4a2357392f1676e3a48d5dd81168f2f9d1.zip
handle helper errors better
Diffstat (limited to 'src/kyclogic')
-rw-r--r--src/kyclogic/plugin_kyclogic_kycaid.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/kyclogic/plugin_kyclogic_kycaid.c b/src/kyclogic/plugin_kyclogic_kycaid.c
index a8d6901c8..10f9658fe 100644
--- a/src/kyclogic/plugin_kyclogic_kycaid.c
+++ b/src/kyclogic/plugin_kyclogic_kycaid.c
@@ -822,7 +822,7 @@ webhook_conversion_cb (void *cls,
struct MHD_Response *resp;
wh->econ = NULL;
- if ( (0 == code) ||
+ if ( (0 == code) &&
(NULL == result) )
{
/* No result, but *our helper* was OK => bad input */
@@ -852,7 +852,9 @@ webhook_conversion_cb (void *cls,
if (NULL == result)
{
/* Failure in our helper */
- GNUNET_break (0);
+ GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
+ "Helper exited with status code %d\n",
+ (int) code);
json_dumpf (wh->json_response,
stderr,
JSON_INDENT (2));