]> granicus.if.org Git - apache/commitdiff
Improve error message (related to PR57311 diagnostic)
authorChristophe Jaillet <jailletc36@apache.org>
Mon, 1 Jun 2015 05:45:13 +0000 (05:45 +0000)
committerChristophe Jaillet <jailletc36@apache.org>
Mon, 1 Jun 2015 05:45:13 +0000 (05:45 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1682819 13f79535-47bb-0310-9956-ffa450edef68

modules/proxy/proxy_util.c

index 2b6e4c4f81c88c7657d5ed7d32216e09fbba482c..8d93c74774e88a093d9ae128947ea255a0ec1f5e 100644 (file)
@@ -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';