From: Christian Grothoff Date: Wed, 26 May 2010 07:58:59 +0000 (+0000) Subject: nicer error handling X-Git-Tag: initial-import-from-subversion-38251~21564 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=1b485a3f49a49231d87ce168022263191a022d7d;p=oweals%2Fgnunet.git nicer error handling --- diff --git a/src/datastore/test_datastore_api.c b/src/datastore/test_datastore_api.c index ce3c18daa..b4f4f07da 100644 --- a/src/datastore/test_datastore_api.c +++ b/src/datastore/test_datastore_api.c @@ -291,8 +291,15 @@ check_multiple (void *cls, if (key == NULL) { - GNUNET_assert (crc->phase == RP_GET_MULTIPLE_DONE); - crc->phase = RP_UPDATE; + if (crc->phase != RP_GET_MULTIPLE_DONE) + { + GNUNET_break (0); + crc->phase = RP_ERROR; + } + else + { + crc->phase = RP_UPDATE; + } GNUNET_SCHEDULER_add_continuation (crc->sched, &run_continuation, crc,