[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [taler-exchange] 06/06: nicer error reporting
From: |
gnunet |
Subject: |
[GNUnet-SVN] [taler-exchange] 06/06: nicer error reporting |
Date: |
Tue, 16 May 2017 11:05:17 +0200 |
This is an automated email from the git hooks/post-receive script.
grothoff pushed a commit to branch master
in repository exchange.
commit 82cec70298c56188ae7ff3caabc1d39d5916ddc9
Author: Christian Grothoff <address@hidden>
AuthorDate: Tue May 16 09:53:34 2017 +0200
nicer error reporting
---
src/bank-lib/test_bank_interpreter.c | 20 +++++++++++++++++---
1 file changed, 17 insertions(+), 3 deletions(-)
diff --git a/src/bank-lib/test_bank_interpreter.c
b/src/bank-lib/test_bank_interpreter.c
index 94b3b0e..e966424 100644
--- a/src/bank-lib/test_bank_interpreter.c
+++ b/src/bank-lib/test_bank_interpreter.c
@@ -374,7 +374,8 @@ print_expected (struct History *h,
(unsigned long long) h[i].serial_id,
h[i].details.wire_transfer_subject,
acc);
- GNUNET_free_non_null (acc);
+ if (NULL != acc)
+ free (acc);
}
}
@@ -563,8 +564,8 @@ history_cb (void *cls,
{
uint64_t total;
struct History *h;
- GNUNET_break (0);
+ GNUNET_break (0);
total = build_history (is,
&h);
GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
@@ -579,7 +580,7 @@ history_cb (void *cls,
}
is->ip++;
is->task = GNUNET_SCHEDULER_add_now (&interpreter_run,
- is);
+ is);
return;
}
if (GNUNET_OK !=
@@ -589,6 +590,19 @@ history_cb (void *cls,
details))
{
GNUNET_break (0);
+ {
+ char *acc;
+
+ acc = json_dumps (json,
+ JSON_COMPACT);
+ GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
+ "Result %u was `%s'\n",
+ (unsigned int) cmd->details.history.results_obtained,
+ acc);
+ if (NULL != acc)
+ free (acc);
+ }
+
cmd->details.history.failed = GNUNET_YES;
return;
}
--
To stop receiving notification emails like this one, please contact
address@hidden
- [GNUnet-SVN] [taler-exchange] branch master updated (cddce0f -> 82cec70), gnunet, 2017/05/16
- [GNUnet-SVN] [taler-exchange] 03/06: handle base32-wire transfer subject being followed by space+exchange base url in wire plugin and fakebank, gnunet, 2017/05/16
- [GNUnet-SVN] [taler-exchange] 02/06: fix port numbers, no longer 8081 but on 8080; and box json array /history response in {data} as required by API, gnunet, 2017/05/16
- [GNUnet-SVN] [taler-exchange] 01/06: take the history array from "data" field returned by the bank, gnunet, 2017/05/16
- [GNUnet-SVN] [taler-exchange] 06/06: nicer error reporting,
gnunet <=
- [GNUnet-SVN] [taler-exchange] 05/06: use and purge alternate db when testing against python bank, gnunet, 2017/05/16
- [GNUnet-SVN] [taler-exchange] 04/06: start_row is actually start in the spec, fix naming, gnunet, 2017/05/16