diff options
author | Christian Grothoff <christian@grothoff.org> | 2018-08-09 21:10:56 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2018-08-09 21:10:56 +0200 |
commit | c51b19512bfc5bf3848211e6a4e9f3534ece7ee2 (patch) | |
tree | 46f5506ca113129e5a36897be25ca898a08c6866 /src/exchange-lib/testing_api_cmd_track.c | |
parent | e3f7083b3eb39ed28eee27b6104a3a508437c929 (diff) | |
download | exchange-c51b19512bfc5bf3848211e6a4e9f3534ece7ee2.tar.xz |
report ore precisely where commands went wrong
Diffstat (limited to 'src/exchange-lib/testing_api_cmd_track.c')
-rw-r--r-- | src/exchange-lib/testing_api_cmd_track.c | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/src/exchange-lib/testing_api_cmd_track.c b/src/exchange-lib/testing_api_cmd_track.c index 60f412c8b..8ce9b7bc4 100644 --- a/src/exchange-lib/testing_api_cmd_track.c +++ b/src/exchange-lib/testing_api_cmd_track.c @@ -184,9 +184,11 @@ deposit_wtid_cb if (tts->expected_response_code != http_status) { GNUNET_log (GNUNET_ERROR_TYPE_ERROR, - "Unexpected response code %u to command %s\n", + "Unexpected response code %u to command %s in %s:%u\n", http_status, - cmd->label); + cmd->label, + __FILE__, + __LINE__); json_dumpf (json, stderr, 0); TALER_TESTING_interpreter_fail (is); return; @@ -224,7 +226,7 @@ deposit_wtid_cb TALER_TESTING_interpreter_fail (is); return; } - + /* Compare that expected and gotten subjects match. */ if (0 != strcmp (ws, transfer_subject)) { @@ -527,9 +529,11 @@ track_transfer_cb if (tts->expected_response_code != http_status) { GNUNET_log (GNUNET_ERROR_TYPE_ERROR, - "Unexpected response code %u to command %s\n", + "Unexpected response code %u to command %s in %s:%u\n", http_status, - cmd->label); + cmd->label, + __FILE__, + __LINE__); json_dumpf (json, stderr, 0); TALER_TESTING_interpreter_fail (is); return; |