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/datastore | |
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/datastore')
-rw-r--r-- | src/datastore/plugin_datastore_sqlite.c | 6 |
1 files changed, 2 insertions, 4 deletions
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, | |||
228 | GNUNET_CONFIGURATION_get_value_filename (cfg, "datastore-sqlite", | 228 | GNUNET_CONFIGURATION_get_value_filename (cfg, "datastore-sqlite", |
229 | "FILENAME", &afsdir)) | 229 | "FILENAME", &afsdir)) |
230 | { | 230 | { |
231 | GNUNET_log_from (GNUNET_ERROR_TYPE_ERROR, "sqlite", | 231 | GNUNET_log_config_missing (GNUNET_ERROR_TYPE_ERROR, |
232 | _ | 232 | "datastore-sqlite", "FILENAME"); |
233 | ("Option `%s' in section `%s' missing in configuration!\n"), | ||
234 | "FILENAME", "datastore-sqlite"); | ||
235 | return GNUNET_SYSERR; | 233 | return GNUNET_SYSERR; |
236 | } | 234 | } |
237 | if (GNUNET_OK != GNUNET_DISK_file_test (afsdir)) | 235 | if (GNUNET_OK != GNUNET_DISK_file_test (afsdir)) |