mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-27 01:51:59 +00:00
dbms: Client: don't write message about syntax error two times in non-interactive mode [#METR-8967].
This commit is contained in:
parent
2320e08fd9
commit
542e79fed4
@ -538,9 +538,9 @@ private:
|
||||
<< ", expected " << (parse_res ? "end of query" : expected) << "."
|
||||
<< std::endl << std::endl;
|
||||
|
||||
std::cerr << message.str();
|
||||
|
||||
if (!is_interactive)
|
||||
if (is_interactive)
|
||||
std::cerr << message.str();
|
||||
else
|
||||
throw Exception(message.str(), ErrorCodes::SYNTAX_ERROR);
|
||||
|
||||
return false;
|
||||
|
Loading…
Reference in New Issue
Block a user