(client) error handling, quote url in error case when failing to parse on

This commit is contained in:
Benjamin Sergeant 2019-12-22 20:30:29 -08:00
parent cbfc9b9f94
commit d0cbff4f4e

View File

@ -144,7 +144,9 @@ namespace ix
if (!UrlParser::parse(url, protocol, host, path, query, port))
{
return WebSocketInitResult(false, 0, std::string("Could not parse URL ") + url);
std::stringstream ss;
ss << "Could not parse url: '" << url << "'";
return WebSocketInitResult(false, 0, ss.str());
}
std::string errorMsg;