]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
This helps return a better error message when the file supplied to DirPortFrontPage...
authorJacob Appelbaum <jacob@appelbaum.net>
Sun, 7 Dec 2008 01:48:30 +0000 (01:48 +0000)
committerJacob Appelbaum <jacob@appelbaum.net>
Sun, 7 Dec 2008 01:48:30 +0000 (01:48 +0000)
svn:r17502

src/or/config.c

index 3deebf89bb3ad0391acc32c357b85e356b0058c6..4264344c20c740d0893a8bd01f2a85f0037becd2 100644 (file)
@@ -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;