From: Christian Grothoff Date: Fri, 20 Aug 2010 11:57:00 +0000 (+0000) Subject: nice error message explaining failure X-Git-Tag: initial-import-from-subversion-38251~20580 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=3f2f615ad7e8101d9dfef94dc26a027581bc0d8f;p=oweals%2Fgnunet.git nice error message explaining failure --- diff --git a/src/fs/test_gnunet_service_fs_migration.c b/src/fs/test_gnunet_service_fs_migration.c index df127a691..67417d81c 100644 --- a/src/fs/test_gnunet_service_fs_migration.c +++ b/src/fs/test_gnunet_service_fs_migration.c @@ -189,7 +189,15 @@ static void do_connect (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) { - GNUNET_assert (0 != (tc->reason & GNUNET_SCHEDULER_REASON_PREREQ_DONE)); + if (0 == (tc->reason & GNUNET_SCHEDULER_REASON_PREREQ_DONE)) + { + fprintf (stderr, + "Daemons failed to start!\n"); + GNUNET_break (0); + GNUNET_FS_TEST_daemons_stop (sched, 2, daemons); + ok = 1; + return; + } GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Daemons started, will now try to connect them\n"); GNUNET_FS_TEST_daemons_connect (sched,