Log exception message in void thread in clickhouse-benchmark

This commit is contained in:
vdimir 2021-07-23 17:41:32 +03:00
parent d1106b325e
commit e4f3b9e7f4
No known key found for this signature in database
GPG Key ID: F57B3E10A21DBB31

View File

@ -383,8 +383,8 @@ private:
catch (...)
{
std::lock_guard lock(mutex);
std::cerr << "An error occurred while processing the query '"
<< query << "'.\n";
std::cerr << "An error occurred while processing the query " << "'" << query << "'"
<< ": " << getCurrentExceptionMessage(false) << std::endl;
if (!continue_on_errors)
{
shutdown = true;