aboutsummaryrefslogtreecommitdiff
path: root/src/fs/fs_namespace.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2012-09-27 19:01:04 +0000
committerChristian Grothoff <christian@grothoff.org>2012-09-27 19:01:04 +0000
commit383eec1895fff4a83f26bb8244d86571dd5baef9 (patch)
treedc6eccf68932c71785ee86d688ebebeda2ac4025 /src/fs/fs_namespace.c
parent195267a6ac380d106d9409aa296885251d102c8e (diff)
downloadgnunet-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/fs_namespace.c')
-rw-r--r--src/fs/fs_namespace.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/fs/fs_namespace.c b/src/fs/fs_namespace.c
index 29cef7472..af1200dc4 100644
--- a/src/fs/fs_namespace.c
+++ b/src/fs/fs_namespace.c
@@ -53,9 +53,8 @@ get_namespace_directory (struct GNUNET_FS_Handle *h)
53 GNUNET_CONFIGURATION_get_value_filename (h->cfg, "FS", "IDENTITY_DIR", 53 GNUNET_CONFIGURATION_get_value_filename (h->cfg, "FS", "IDENTITY_DIR",
54 &dn)) 54 &dn))
55 { 55 {
56 GNUNET_log (GNUNET_ERROR_TYPE_ERROR, 56 GNUNET_log_config_missing (GNUNET_ERROR_TYPE_ERROR,
57 _("Configuration fails to specify `%s' in section `%s'\n"), 57 "fs", "IDENTITY_DIR");
58 "IDENTITY_DIR", "fs");
59 return NULL; 58 return NULL;
60 } 59 }
61 return dn; 60 return dn;
@@ -79,9 +78,8 @@ get_update_information_directory (struct GNUNET_FS_Namespace *ns)
79 GNUNET_CONFIGURATION_get_value_filename (ns->h->cfg, "FS", "UPDATE_DIR", 78 GNUNET_CONFIGURATION_get_value_filename (ns->h->cfg, "FS", "UPDATE_DIR",
80 &dn)) 79 &dn))
81 { 80 {
82 GNUNET_log (GNUNET_ERROR_TYPE_ERROR, 81 GNUNET_log_config_missing (GNUNET_ERROR_TYPE_ERROR,
83 _("Configuration fails to specify `%s' in section `%s'\n"), 82 "fs", "UPDATE_DIR");
84 "UPDATE_DIR", "fs");
85 return NULL; 83 return NULL;
86 } 84 }
87 GNUNET_asprintf (&ret, "%s%s%s", dn, DIR_SEPARATOR_STR, ns->name); 85 GNUNET_asprintf (&ret, "%s%s%s", dn, DIR_SEPARATOR_STR, ns->name);