From: Andre Malo Date: Wed, 1 Jan 2003 04:25:02 +0000 (+0000) Subject: provide better error messages for the multiviewsmatch directive. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9b5be37a6ad10982df8778cdbf78de024cb483e2;p=apache provide better error messages for the multiviewsmatch directive. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@98145 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/http/mod_mime.c b/modules/http/mod_mime.c index eecd8d1ac7..c9aed6f334 100644 --- a/modules/http/mod_mime.c +++ b/modules/http/mod_mime.c @@ -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;