From 383eec1895fff4a83f26bb8244d86571dd5baef9 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Thu, 27 Sep 2012 19:01:04 +0000 Subject: reducing error messages about missing configuration options by introducing new helper functions to print them uniformly --- src/util/gnunet-config.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/util/gnunet-config.c') 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, if (GNUNET_OK != GNUNET_CONFIGURATION_get_value_filename (cfg, section, option, &value)) { - fprintf (stderr, _("No value for option `%s' in section `%s'\n"), - option, section); + GNUNET_log_config_missing (GNUNET_ERROR_TYPE_ERROR, + section, option); ret = 3; return; } @@ -117,8 +117,8 @@ run (void *cls, char *const *args, const char *cfgfile, if (GNUNET_OK != GNUNET_CONFIGURATION_get_value_string (cfg, section, option, &value)) { - fprintf (stderr, _("No value for option `%s' in section `%s'\n"), - option, section); + GNUNET_log_config_missing (GNUNET_ERROR_TYPE_ERROR, + section, option); ret = 3; return; } -- cgit v1.2.3