From: Christophe Jaillet Date: Mon, 1 Jun 2015 05:45:13 +0000 (+0000) Subject: Improve error message (related to PR57311 diagnostic) X-Git-Tag: 2.5.0-alpha~3117 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d83f45cee18ae488a671185829ab52a96005a8f6;p=apache Improve error message (related to PR57311 diagnostic) git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1682819 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/proxy/proxy_util.c b/modules/proxy/proxy_util.c index 2b6e4c4f81..8d93c74774 100644 --- a/modules/proxy/proxy_util.c +++ b/modules/proxy/proxy_util.c @@ -1152,7 +1152,7 @@ PROXY_DECLARE(char *) ap_proxy_define_balancer(apr_pool_t *p, c = strchr(uri, ':'); if (c == NULL || c[1] != '/' || c[2] != '/' || c[3] == '\0') - return "Bad syntax for a balancer name"; + return apr_psprintf(p, "Bad syntax for a balancer name (%s)", uri); /* remove path from uri */ if ((q = strchr(c + 3, '/'))) *q = '\0';