diff options
author | Christian Grothoff <christian@grothoff.org> | 2012-12-17 11:03:29 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2012-12-17 11:03:29 +0000 |
commit | b1accf82b03593e74b42c9a0cc453401c6681e79 (patch) | |
tree | a52f19604403772523726794b2a8c473f83f1074 /src | |
parent | a22414eea08d79ef1d6b1683543a533d500a6e6d (diff) | |
download | gnunet-b1accf82b03593e74b42c9a0cc453401c6681e79.tar.gz gnunet-b1accf82b03593e74b42c9a0cc453401c6681e79.zip |
-generate nicer error message
Diffstat (limited to 'src')
-rw-r--r-- | src/testbed/testbed_api_testbed.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/testbed/testbed_api_testbed.c b/src/testbed/testbed_api_testbed.c index 5c07fbfab..e1ec50386 100644 --- a/src/testbed/testbed_api_testbed.c +++ b/src/testbed/testbed_api_testbed.c | |||
@@ -982,8 +982,9 @@ GNUNET_TESTBED_run (const char *host_filename, | |||
982 | if (GNUNET_NO == GNUNET_TESTBED_topology_get_ (&rc->topology, | 982 | if (GNUNET_NO == GNUNET_TESTBED_topology_get_ (&rc->topology, |
983 | topology)) | 983 | topology)) |
984 | { | 984 | { |
985 | LOG (GNUNET_ERROR_TYPE_WARNING, | 985 | GNUNET_log_config_invalid (GNUNET_ERROR_TYPE_ERROR, |
986 | "Unknown topology %s given in configuration\n", topology); | 986 | "testbed", "OVERLAY_TOPLOGY", |
987 | _("Specified topology must be supported by testbed")); | ||
987 | } | 988 | } |
988 | GNUNET_free (topology); | 989 | GNUNET_free (topology); |
989 | } | 990 | } |
@@ -998,7 +999,8 @@ GNUNET_TESTBED_run (const char *host_filename, | |||
998 | { | 999 | { |
999 | /* OVERLAY option RANDOM & SMALL_WORLD_RING requires OVERLAY_RANDOM_LINKS | 1000 | /* OVERLAY option RANDOM & SMALL_WORLD_RING requires OVERLAY_RANDOM_LINKS |
1000 | option to be set to the number of random links to be established */ | 1001 | option to be set to the number of random links to be established */ |
1001 | GNUNET_break (0); | 1002 | GNUNET_log_config_missing (GNUNET_ERROR_TYPE_ERROR, |
1003 | "testbed", "OVERLAY_RANDOM_LINKS"); | ||
1002 | goto error_cleanup; | 1004 | goto error_cleanup; |
1003 | } | 1005 | } |
1004 | if (random_links > UINT32_MAX) | 1006 | if (random_links > UINT32_MAX) |
@@ -1013,8 +1015,8 @@ GNUNET_TESTBED_run (const char *host_filename, | |||
1013 | "TOPOLOGY_FILE", | 1015 | "TOPOLOGY_FILE", |
1014 | &rc->topo_file)) | 1016 | &rc->topo_file)) |
1015 | { | 1017 | { |
1016 | /* You need to set TOPOLOGY_FILE option to a topolog file */ | 1018 | GNUNET_log_config_missing (GNUNET_ERROR_TYPE_ERROR, |
1017 | GNUNET_break (0); | 1019 | "testbed", "TOPOLOGY_FILE"); |
1018 | goto error_cleanup; | 1020 | goto error_cleanup; |
1019 | } | 1021 | } |
1020 | break; | 1022 | break; |