Merge pull request #19724 from ClickHouse/aku/client-empty-line

add empty line after error messages in client
This commit is contained in:
alexey-milovidov 2021-01-29 03:39:13 +03:00 committed by GitHub
commit 86adfd968c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -932,6 +932,10 @@ private:
std::cerr << "Received exception from server (version "
<< server_version << "):" << std::endl << "Code: "
<< server_exception->code() << ". " << text << std::endl;
if (is_interactive)
{
std::cerr << std::endl;
}
}
if (client_exception)
@ -939,6 +943,10 @@ private:
fmt::print(stderr,
"Error on processing query '{}':\n{}\n",
full_query, client_exception->message());
if (is_interactive)
{
fmt::print(stderr, "\n");
}
}
// A debug check -- at least some exception must be set, if the error