diff options
author | Christian Grothoff <christian@grothoff.org> | 2012-09-27 19:01:04 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2012-09-27 19:01:04 +0000 |
commit | 383eec1895fff4a83f26bb8244d86571dd5baef9 (patch) | |
tree | dc6eccf68932c71785ee86d688ebebeda2ac4025 /src/gns | |
parent | 195267a6ac380d106d9409aa296885251d102c8e (diff) | |
download | gnunet-383eec1895fff4a83f26bb8244d86571dd5baef9.tar.gz gnunet-383eec1895fff4a83f26bb8244d86571dd5baef9.zip |
reducing error messages about missing configuration options by introducing new helper functions to print them uniformly
Diffstat (limited to 'src/gns')
-rw-r--r-- | src/gns/gnunet-gns-fcfsd.c | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/src/gns/gnunet-gns-fcfsd.c b/src/gns/gnunet-gns-fcfsd.c index 7ef066957..5503000ac 100644 --- a/src/gns/gnunet-gns-fcfsd.c +++ b/src/gns/gnunet-gns-fcfsd.c | |||
@@ -888,11 +888,9 @@ run (void *cls, char *const *args, const char *cfgfile, | |||
888 | "HTTPPORT", | 888 | "HTTPPORT", |
889 | &port)) | 889 | &port)) |
890 | { | 890 | { |
891 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, | 891 | GNUNET_log_config_missing (GNUNET_ERROR_TYPE_ERROR, |
892 | _("Option `%s' not specified in configuration section `%s'\n"), | 892 | "fcfsd", "HTTPPORT"); |
893 | "HTTPPORT", | 893 | return; |
894 | "fcfsd"); | ||
895 | return; | ||
896 | } | 894 | } |
897 | if (GNUNET_OK != | 895 | if (GNUNET_OK != |
898 | GNUNET_CONFIGURATION_get_value_filename (cfg, | 896 | GNUNET_CONFIGURATION_get_value_filename (cfg, |
@@ -900,10 +898,8 @@ run (void *cls, char *const *args, const char *cfgfile, | |||
900 | "ZONEKEY", | 898 | "ZONEKEY", |
901 | &keyfile)) | 899 | &keyfile)) |
902 | { | 900 | { |
903 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, | 901 | GNUNET_log_config_missing (GNUNET_ERROR_TYPE_ERROR, |
904 | _("Option `%s' not specified in configuration section `%s'\n"), | 902 | "fcfsd", "ZONEKEY"); |
905 | "ZONEKEY", | ||
906 | "fcfsd"); | ||
907 | return; | 903 | return; |
908 | } | 904 | } |
909 | fcfs_zone_pkey = GNUNET_CRYPTO_rsa_key_create_from_file (keyfile); | 905 | fcfs_zone_pkey = GNUNET_CRYPTO_rsa_key_create_from_file (keyfile); |