clickhouse-client: fixed return code for poco exceptions [#CONV-2944].

This commit is contained in:
Michael Kolupaev 2013-02-21 10:56:04 +00:00
parent b4222e65e3
commit a5ee7a8a3d

View File

@ -234,7 +234,7 @@ private:
catch (const Poco::Exception & e)
{
std::cerr << "Poco::Exception: " << e.displayText() << std::endl;
return e.code();
return ErrorCodes::POCO_EXCEPTION;
}
catch (const std::exception & e)
{