]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
* server/core.c (set_document_root): Improve error message for
authorJoe Orton <jorton@apache.org>
Wed, 24 Jul 2013 09:51:14 +0000 (09:51 +0000)
committerJoe Orton <jorton@apache.org>
Wed, 24 Jul 2013 09:51:14 +0000 (09:51 +0000)
  inaccessible docroot.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1506474 13f79535-47bb-0310-9956-ffa450edef68

server/core.c

index 1a07fd9709d1a24f42574eb3d26819bb1817549e..cf0e6c13eb9073987fee4f9a290f6a63a7950771 100644 (file)
@@ -1481,7 +1481,9 @@ static const char *set_document_root(cmd_parms *cmd, void *dummy,
             conf->ap_document_root = arg;
         }
         else {
-            return "DocumentRoot must be a directory";
+            return apr_psprintf(cmd->pool, 
+                                "DocumentRoot '%s' is not a directory, or is not readable",
+                                arg);
         }
     }
     return NULL;