aboutsummaryrefslogtreecommitdiff
path: root/src/datastore/test_datastore_api.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2011-09-14 12:42:28 +0000
committerChristian Grothoff <christian@grothoff.org>2011-09-14 12:42:28 +0000
commit0514c61f6b185d3a7ae98309eca53d83de685ebe (patch)
tree5777fee5fb4518016ed808fce2e8d35e3f29dfa7 /src/datastore/test_datastore_api.c
parente04b3d81b8fafd6df42755db513d3cc68433d5b1 (diff)
better reporting
Diffstat (limited to 'src/datastore/test_datastore_api.c')
-rw-r--r--src/datastore/test_datastore_api.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/datastore/test_datastore_api.c b/src/datastore/test_datastore_api.c
index 91350f2033..47b1945ad7 100644
--- a/src/datastore/test_datastore_api.c
+++ b/src/datastore/test_datastore_api.c
@@ -182,6 +182,16 @@ check_value (void *cls, const GNUNET_HashCode * key, size_t size,
int i;
i = crc->i;
+ if (NULL == key)
+ {
+ GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
+ "Value check failed (got NULL key) in %d/%d\n",
+ crc->phase, crc->i);
+ crc->phase = RP_ERROR;
+ GNUNET_SCHEDULER_add_continuation (&run_continuation, crc,
+ GNUNET_SCHEDULER_REASON_PREREQ_DONE);
+ return;
+ }
#if 0
fprintf (stderr, "Check value got `%s' of size %u, type %d, expire %llu\n",
GNUNET_h2s (key), (unsigned int) size, type,