(client) error handling, quote url in error case when failing to parse on
This commit is contained in:
parent
db0ff4ecd1
commit
536a502b60
@ -144,7 +144,9 @@ namespace ix
|
|||||||
|
|
||||||
if (!UrlParser::parse(url, protocol, host, path, query, port))
|
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;
|
std::string errorMsg;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user