Catch and reformat error with invalid url

This commit is contained in:
kssenii 2021-08-16 14:30:06 +00:00
parent 9a02c6ad05
commit 77c350cedc

View File

@ -63,7 +63,15 @@ bool ReadIndirectBufferFromWebServer::nextImpl()
}
else
{
impl = initialize();
try
{
impl = initialize();
}
catch (const Poco::Exception & e)
{
throw Exception(ErrorCodes::NETWORK_ERROR, "Unreachable url: {}. Error: {}", url, e.what());
}
next_result = impl->hasPendingData();
}