From: Daniel Stenberg Date: Wed, 23 Jul 2014 16:16:38 +0000 (+0200) Subject: findprotocol: show unsupported protocol within quotes X-Git-Tag: curl-7_38_0~184 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5b22c47ca9f326d359d0016bfe6fb3ffd57324e1;p=thirdparty%2Fcurl.git findprotocol: show unsupported protocol within quotes ... to aid when for example prefixed with a space or other weird character. --- diff --git a/lib/url.c b/lib/url.c index 11d5c8da1f..57d2438223 100644 --- a/lib/url.c +++ b/lib/url.c @@ -3717,7 +3717,7 @@ static CURLcode findprotocol(struct SessionHandle *data, /* The protocol was not found in the table, but we don't have to assign it to anything since it is already assigned to a dummy-struct in the create_conn() function when the connectdata struct is allocated. */ - failf(data, "Protocol %s not supported or disabled in " LIBCURL_NAME, + failf(data, "Protocol \"%s\" not supported or disabled in " LIBCURL_NAME, protostr); return CURLE_UNSUPPORTED_PROTOCOL;