gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r25501 - gnunet/src/testbed


From: gnunet
Subject: [GNUnet-SVN] r25501 - gnunet/src/testbed
Date: Mon, 17 Dec 2012 12:03:29 +0100

Author: grothoff
Date: 2012-12-17 12:03:29 +0100 (Mon, 17 Dec 2012)
New Revision: 25501

Modified:
   gnunet/src/testbed/testbed_api_testbed.c
Log:
-generate nicer error message

Modified: gnunet/src/testbed/testbed_api_testbed.c
===================================================================
--- gnunet/src/testbed/testbed_api_testbed.c    2012-12-17 10:54:41 UTC (rev 
25500)
+++ gnunet/src/testbed/testbed_api_testbed.c    2012-12-17 11:03:29 UTC (rev 
25501)
@@ -982,8 +982,9 @@
     if (GNUNET_NO == GNUNET_TESTBED_topology_get_ (&rc->topology,
                                                     topology))
     {
-      LOG (GNUNET_ERROR_TYPE_WARNING,
-           "Unknown topology %s given in configuration\n", topology);
+      GNUNET_log_config_invalid (GNUNET_ERROR_TYPE_ERROR,
+                                "testbed", "OVERLAY_TOPLOGY",
+                                _("Specified topology must be supported by 
testbed"));
     }
     GNUNET_free (topology);
   }
@@ -998,7 +999,8 @@
     {
       /* OVERLAY option RANDOM & SMALL_WORLD_RING requires OVERLAY_RANDOM_LINKS
          option to be set to the number of random links to be established  */
-      GNUNET_break (0);
+      GNUNET_log_config_missing (GNUNET_ERROR_TYPE_ERROR,
+                                "testbed", "OVERLAY_RANDOM_LINKS");
       goto error_cleanup;
     }
     if (random_links > UINT32_MAX)
@@ -1013,8 +1015,8 @@
                                                             "TOPOLOGY_FILE",
                                                             &rc->topo_file))
     {
-      /* You need to set TOPOLOGY_FILE option to a topolog file */
-      GNUNET_break (0);
+      GNUNET_log_config_missing (GNUNET_ERROR_TYPE_ERROR,
+                                "testbed", "TOPOLOGY_FILE");
       goto error_cleanup;
     }
     break;




reply via email to

[Prev in Thread] Current Thread [Next in Thread]