From: Jacob Appelbaum Date: Sun, 7 Dec 2008 01:48:30 +0000 (+0000) Subject: This helps return a better error message when the file supplied to DirPortFrontPage... X-Git-Tag: tor-0.2.1.8-alpha~15 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f70146ca91555f5feecd960ecee67e7bb6873adc;p=thirdparty%2Ftor.git This helps return a better error message when the file supplied to DirPortFrontPage is missing. svn:r17502 --- 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;