aboutsummaryrefslogtreecommitdiff
path: root/src/testing/testing_api_cmd_reserve_history.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2022-05-23 14:57:00 +0200
committerChristian Grothoff <christian@grothoff.org>2022-05-23 14:57:00 +0200
commitcdd2930a9951a552d221b8a8b8e9c0df35ad8be2 (patch)
tree2389f0cad26e47d2315650f2f9e698120c5f2182 /src/testing/testing_api_cmd_reserve_history.c
parent2035294adbcafc93c70d2cb7d27ce1a74d5a61ca (diff)
downloadexchange-cdd2930a9951a552d221b8a8b8e9c0df35ad8be2.tar.xz
-misc fixes to reserve history
Diffstat (limited to 'src/testing/testing_api_cmd_reserve_history.c')
-rw-r--r--src/testing/testing_api_cmd_reserve_history.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/testing/testing_api_cmd_reserve_history.c b/src/testing/testing_api_cmd_reserve_history.c
index ec190d5ce..6cee5af15 100644
--- a/src/testing/testing_api_cmd_reserve_history.c
+++ b/src/testing/testing_api_cmd_reserve_history.c
@@ -122,7 +122,12 @@ analyze_command (const struct TALER_ReservePublicKeyP *reserve_pub,
history_length,
history,
found))
+ {
+ GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
+ "Entry for batch step `%s' missing in history\n",
+ step->label);
return GNUNET_SYSERR;
+ }
}
return GNUNET_OK;
}
@@ -251,6 +256,9 @@ reserve_history_cb (void *cls,
GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
"Entry for command `%s' missing in history\n",
cmd->label);
+ json_dumpf (rs->hr.reply,
+ stderr,
+ JSON_INDENT (2));
TALER_TESTING_interpreter_fail (ss->is);
return;
}
@@ -262,6 +270,9 @@ reserve_history_cb (void *cls,
"History entry at index %u of type %d not justified by command history\n",
i,
rs->details.ok.history[i].type);
+ json_dumpf (rs->hr.reply,
+ stderr,
+ JSON_INDENT (2));
TALER_TESTING_interpreter_fail (ss->is);
return;
}