summaryrefslogtreecommitdiff
path: root/src/or/config.c
diff options
context:
space:
mode:
authorJacob Appelbaum <jacob@appelbaum.net>2008-12-07 01:48:30 +0000
committerJacob Appelbaum <jacob@appelbaum.net>2008-12-07 01:48:30 +0000
commitf70146ca91555f5feecd960ecee67e7bb6873adc (patch)
tree14f2659fc0e9e02dfeff6c3d3090a3df99e8aa56 /src/or/config.c
parent21892d8a9c29ad8e1ec09738adefe7aeb40dfa79 (diff)
downloadtor-f70146ca91555f5feecd960ecee67e7bb6873adc.tar.gz
tor-f70146ca91555f5feecd960ecee67e7bb6873adc.zip
This helps return a better error message when the file supplied to DirPortFrontPage is missing.
svn:r17502
Diffstat (limited to 'src/or/config.c')
-rw-r--r--src/or/config.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/or/config.c b/src/or/config.c
index 3deebf89bb..4264344c20 100644
--- a/src/or/config.c
+++ b/src/or/config.c
@@ -1428,6 +1428,12 @@ options_act(or_options_t *old_options)
if (options->DirPortFrontPage) {
global_dirfrontpagecontents =
read_file_to_str(options->DirPortFrontPage, 0, NULL);
+ if (!global_dirfrontpagecontents)
+ {
+ log_warn(LD_CONFIG,
+ "DirPortFrontPage file '%s' not found. Continuing anyway.",
+ options->DirPortFrontPage);
+ }
}
return 0;