1
0
Fork 0

use THROW_ARANGO_EXCEPTION

This commit is contained in:
Jan Steemann 2016-04-12 15:04:17 +02:00
parent f2c8df7db7
commit 0c272978d9
1 changed files with 2 additions and 3 deletions

View File

@ -62,9 +62,8 @@ std::string Endpoint::uriForm (std::string const& endpoint) {
} else if (StringUtils::isPrefix(endpoint, "ssl://")) {
url << "https://";
} else {
throw arangodb::basics::Exception (
0, std::string("malformed URL ") + endpoint
+ ". Support only for ssl:// and tcp:// endpoints." , __FILE__, __LINE__);
THROW_ARANGO_EXCEPTION_MESSAGE(TRI_ERROR_INTERNAL, std::string("malformed URL ") + endpoint
+ ". Support only for ssl:// and tcp:// endpoints.");
}
url << endpoint.substr(prefix_len,endpoint.size()+1-(prefix_len+1));