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/datastore/plugin_datastore_sqlite.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/datastore/plugin_datastore_sqlite.c') diff --git a/src/datastore/plugin_datastore_sqlite.c b/src/datastore/plugin_datastore_sqlite.c index 40b4de33e..54414a8b0 100644 --- a/src/datastore/plugin_datastore_sqlite.c +++ b/src/datastore/plugin_datastore_sqlite.c @@ -228,10 +228,8 @@ database_setup (const struct GNUNET_CONFIGURATION_Handle *cfg, GNUNET_CONFIGURATION_get_value_filename (cfg, "datastore-sqlite", "FILENAME", &afsdir)) { - GNUNET_log_from (GNUNET_ERROR_TYPE_ERROR, "sqlite", - _ - ("Option `%s' in section `%s' missing in configuration!\n"), - "FILENAME", "datastore-sqlite"); + GNUNET_log_config_missing (GNUNET_ERROR_TYPE_ERROR, + "datastore-sqlite", "FILENAME"); return GNUNET_SYSERR; } if (GNUNET_OK != GNUNET_DISK_file_test (afsdir)) -- cgit v1.2.3