summaryrefslogtreecommitdiff
path: root/src/backend/taler-merchant-httpd.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/backend/taler-merchant-httpd.c')
-rw-r--r--src/backend/taler-merchant-httpd.c13
1 files changed, 9 insertions, 4 deletions
diff --git a/src/backend/taler-merchant-httpd.c b/src/backend/taler-merchant-httpd.c
index 472a4fb7..c5ebe21e 100644
--- a/src/backend/taler-merchant-httpd.c
+++ b/src/backend/taler-merchant-httpd.c
@@ -430,6 +430,7 @@ instances_iterator_cb (void *cls,
/* used as hashmap keys */
struct GNUNET_HashCode h_pk;
struct GNUNET_HashCode h_id;
+ char *emsg;
iic = cls;
substr = strstr (section, "merchant-instance-");
@@ -500,13 +501,17 @@ instances_iterator_cb (void *cls,
instance_wiresection);
GNUNET_free (instance_wiresection);
- if (GNUNET_YES != iic->plugin->wire_validate (iic->plugin->cls,
- mi->j_wire,
- NULL))
+ if (TALER_EC_NONE !=
+ iic->plugin->wire_validate (iic->plugin->cls,
+ mi->j_wire,
+ NULL,
+ &emsg))
{
GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
- "Malformed wireformat\n");
+ "Malformed wireformat: %s\n",
+ emsg);
+ GNUNET_free (emsg);
iic->ret |= GNUNET_SYSERR;
}