aboutsummaryrefslogtreecommitdiff
path: root/src/datastore/test_datastore_api.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2010-05-26 07:58:59 +0000
committerChristian Grothoff <christian@grothoff.org>2010-05-26 07:58:59 +0000
commit1b485a3f49a49231d87ce168022263191a022d7d (patch)
treeebb9c53e453c9692cd06fb02ff9fb8400769c544 /src/datastore/test_datastore_api.c
parent0b29cf7b7067f82a0de7a3660ba7f288fcee5cb5 (diff)
downloadgnunet-1b485a3f49a49231d87ce168022263191a022d7d.tar.gz
gnunet-1b485a3f49a49231d87ce168022263191a022d7d.zip
nicer error handling
Diffstat (limited to 'src/datastore/test_datastore_api.c')
-rw-r--r--src/datastore/test_datastore_api.c11
1 files changed, 9 insertions, 2 deletions
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,
291 291
292 if (key == NULL) 292 if (key == NULL)
293 { 293 {
294 GNUNET_assert (crc->phase == RP_GET_MULTIPLE_DONE); 294 if (crc->phase != RP_GET_MULTIPLE_DONE)
295 crc->phase = RP_UPDATE; 295 {
296 GNUNET_break (0);
297 crc->phase = RP_ERROR;
298 }
299 else
300 {
301 crc->phase = RP_UPDATE;
302 }
296 GNUNET_SCHEDULER_add_continuation (crc->sched, 303 GNUNET_SCHEDULER_add_continuation (crc->sched,
297 &run_continuation, 304 &run_continuation,
298 crc, 305 crc,