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/fs/gnunet-service-fs_indexing.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/fs/gnunet-service-fs_indexing.c')
-rw-r--r-- | src/fs/gnunet-service-fs_indexing.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/fs/gnunet-service-fs_indexing.c b/src/fs/gnunet-service-fs_indexing.c index 60dd1c131..7bd8316ab 100644 --- a/src/fs/gnunet-service-fs_indexing.c +++ b/src/fs/gnunet-service-fs_indexing.c | |||
@@ -109,9 +109,8 @@ write_index_list () | |||
109 | if (GNUNET_OK != | 109 | if (GNUNET_OK != |
110 | GNUNET_CONFIGURATION_get_value_filename (cfg, "FS", "INDEXDB", &fn)) | 110 | GNUNET_CONFIGURATION_get_value_filename (cfg, "FS", "INDEXDB", &fn)) |
111 | { | 111 | { |
112 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR | GNUNET_ERROR_TYPE_BULK, | 112 | GNUNET_log_config_missing (GNUNET_ERROR_TYPE_ERROR | GNUNET_ERROR_TYPE_BULK, |
113 | _("Configuration option `%s' in section `%s' missing.\n"), | 113 | "fs", "INDEXDB"); |
114 | "INDEXDB", "FS"); | ||
115 | return; | 114 | return; |
116 | } | 115 | } |
117 | wh = GNUNET_BIO_write_open (fn); | 116 | wh = GNUNET_BIO_write_open (fn); |
@@ -159,9 +158,8 @@ read_index_list () | |||
159 | if (GNUNET_OK != | 158 | if (GNUNET_OK != |
160 | GNUNET_CONFIGURATION_get_value_filename (cfg, "FS", "INDEXDB", &fn)) | 159 | GNUNET_CONFIGURATION_get_value_filename (cfg, "FS", "INDEXDB", &fn)) |
161 | { | 160 | { |
162 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR | GNUNET_ERROR_TYPE_BULK, | 161 | GNUNET_log_config_missing (GNUNET_ERROR_TYPE_ERROR | GNUNET_ERROR_TYPE_BULK, |
163 | _("Configuration option `%s' in section `%s' missing.\n"), | 162 | "fs", "INDEXDB"); |
164 | "INDEXDB", "FS"); | ||
165 | return; | 163 | return; |
166 | } | 164 | } |
167 | if (GNUNET_NO == GNUNET_DISK_file_test (fn)) | 165 | if (GNUNET_NO == GNUNET_DISK_file_test (fn)) |