]> granicus.if.org Git - apache/commitdiff
provide better error messages for the multiviewsmatch directive.
authorAndré Malo <nd@apache.org>
Wed, 1 Jan 2003 04:25:02 +0000 (04:25 +0000)
committerAndré Malo <nd@apache.org>
Wed, 1 Jan 2003 04:25:02 +0000 (04:25 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@98145 13f79535-47bb-0310-9956-ffa450edef68

modules/http/mod_mime.c

index eecd8d1ac710586f3aa67d61bfce8f17a4f4b344..c9aed6f334299e9f32a756159d3f18d12a0971df 100644 (file)
@@ -365,7 +365,7 @@ static const char *multiviews_match(cmd_parms *cmd, void *m_,
     }
     else if (strcasecmp(include, "NegotiatedOnly") == 0) {
         if (m->multimatch && (m->multimatch & ~MULTIMATCH_NEGOTIATED)) {
-            return "Any is incompatible with NegotiatedOnly, "
+            return "NegotiatedOnly is incompatible with Any, "
                    "Filters and Handlers";
         }
         m->multimatch |= MULTIMATCH_NEGOTIATED;
@@ -385,7 +385,7 @@ static const char *multiviews_match(cmd_parms *cmd, void *m_,
         m->multimatch |= MULTIMATCH_HANDLERS;
     }
     else {
-        return "Unrecognized option";
+        return apr_psprintf(cmd->pool, "Unrecognized option '%s'", include);
     }
 
     return NULL;