aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2018-04-02 17:16:04 +0200
committerChristian Grothoff <christian@grothoff.org>2018-04-02 17:16:04 +0200
commit2b0f98dd4b875ed0f7f833c377197265fa11384e (patch)
tree0da4284188bb75d4313489def2f07558da6f3d3b /src
parente098dbf4dc102cd5d26f34f41e78b5c3333c88b4 (diff)
downloadexchange-2b0f98dd4b875ed0f7f833c377197265fa11384e.tar.gz
exchange-2b0f98dd4b875ed0f7f833c377197265fa11384e.tar.bz2
exchange-2b0f98dd4b875ed0f7f833c377197265fa11384e.zip
report which command failed
Diffstat (limited to 'src')
-rw-r--r--src/exchange-lib/testing_api_loop.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/exchange-lib/testing_api_loop.c b/src/exchange-lib/testing_api_loop.c
index 592843ba9..7efadb396 100644
--- a/src/exchange-lib/testing_api_loop.c
+++ b/src/exchange-lib/testing_api_loop.c
@@ -158,7 +158,13 @@ void
TALER_TESTING_interpreter_fail
(struct TALER_TESTING_Interpreter *is)
{
+ struct TALER_TESTING_Command *cmd = &is->commands[is->ip];
+
// FIXME: disconnect from the exchange.
+ GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
+ "Failed at command `%s'\n",
+ cmd->label);
+
is->result = GNUNET_SYSERR;
// this cleans up too.
GNUNET_SCHEDULER_shutdown ();
@@ -473,7 +479,7 @@ cert_cb (void *cls,
{
GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
"Got NULL response for /keys\n");
-
+
}
else
GNUNET_log (GNUNET_ERROR_TYPE_INFO,
@@ -482,7 +488,7 @@ cert_cb (void *cls,
main_ctx->is->key_generation++;
main_ctx->is->keys = keys;
-
+
/* /keys has been called for some reason and
* the interpreter is already running. */
if (GNUNET_YES == main_ctx->is->working)