From: Christian Grothoff Date: Wed, 14 Sep 2011 12:42:28 +0000 (+0000) Subject: better reporting X-Git-Tag: initial-import-from-subversion-38251~17116 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=0514c61f6b185d3a7ae98309eca53d83de685ebe;p=oweals%2Fgnunet.git better reporting --- diff --git a/src/datastore/test_datastore_api.c b/src/datastore/test_datastore_api.c index 91350f203..47b1945ad 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,