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/util/gnunet-config.c | |
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/util/gnunet-config.c')
-rw-r--r-- | src/util/gnunet-config.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/util/gnunet-config.c b/src/util/gnunet-config.c index c91153f69..78c93c3b8 100644 --- a/src/util/gnunet-config.c +++ b/src/util/gnunet-config.c | |||
@@ -106,8 +106,8 @@ run (void *cls, char *const *args, const char *cfgfile, | |||
106 | if (GNUNET_OK != | 106 | if (GNUNET_OK != |
107 | GNUNET_CONFIGURATION_get_value_filename (cfg, section, option, &value)) | 107 | GNUNET_CONFIGURATION_get_value_filename (cfg, section, option, &value)) |
108 | { | 108 | { |
109 | fprintf (stderr, _("No value for option `%s' in section `%s'\n"), | 109 | GNUNET_log_config_missing (GNUNET_ERROR_TYPE_ERROR, |
110 | option, section); | 110 | section, option); |
111 | ret = 3; | 111 | ret = 3; |
112 | return; | 112 | return; |
113 | } | 113 | } |
@@ -117,8 +117,8 @@ run (void *cls, char *const *args, const char *cfgfile, | |||
117 | if (GNUNET_OK != | 117 | if (GNUNET_OK != |
118 | GNUNET_CONFIGURATION_get_value_string (cfg, section, option, &value)) | 118 | GNUNET_CONFIGURATION_get_value_string (cfg, section, option, &value)) |
119 | { | 119 | { |
120 | fprintf (stderr, _("No value for option `%s' in section `%s'\n"), | 120 | GNUNET_log_config_missing (GNUNET_ERROR_TYPE_ERROR, |
121 | option, section); | 121 | section, option); |
122 | ret = 3; | 122 | ret = 3; |
123 | return; | 123 | return; |
124 | } | 124 | } |