From 1b485a3f49a49231d87ce168022263191a022d7d Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Wed, 26 May 2010 07:58:59 +0000 Subject: nicer error handling --- src/datastore/test_datastore_api.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'src/datastore/test_datastore_api.c') 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, -- cgit v1.2.3