mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-17 13:13:36 +00:00
Catch and reformat error with invalid url
This commit is contained in:
parent
9a02c6ad05
commit
77c350cedc
@ -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();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user