mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-20 00:30:49 +00:00
client: print query on client exception only in non-interactive mode
This commit is contained in:
parent
f0f31ab8f3
commit
09f43d21a8
@ -1046,11 +1046,15 @@ private:
|
||||
|
||||
if (client_exception)
|
||||
{
|
||||
fmt::print(stderr, "Error on processing query '{}':\n{}\n", full_query, client_exception->message());
|
||||
fmt::print(stderr, "Error on processing query: {}\n", client_exception->message());
|
||||
if (is_interactive)
|
||||
{
|
||||
fmt::print(stderr, "\n");
|
||||
}
|
||||
else
|
||||
{
|
||||
fmt::print(stderr, "(query: {})\n", full_query);
|
||||
}
|
||||
}
|
||||
|
||||
// A debug check -- at least some exception must be set, if the error
|
||||
|
Loading…
Reference in New Issue
Block a user