[or-cvs] r17502: {tor} This helps return a better error message when the file suppl (tor/trunk/src/or)
ioerror at seul.org
ioerror at seul.org
Sun Dec 7 01:48:30 UTC 2008
Author: ioerror
Date: 2008-12-06 20:48:30 -0500 (Sat, 06 Dec 2008)
New Revision: 17502
Modified:
tor/trunk/src/or/config.c
Log:
This helps return a better error message when the file supplied to DirPortFrontPage is missing.
Modified: tor/trunk/src/or/config.c
===================================================================
--- tor/trunk/src/or/config.c 2008-12-07 01:34:45 UTC (rev 17501)
+++ tor/trunk/src/or/config.c 2008-12-07 01:48:30 UTC (rev 17502)
@@ -1428,6 +1428,12 @@
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;
More information about the tor-commits
mailing list