mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-10 01:25:21 +00:00
Fix tests
This commit is contained in:
parent
e127fa6976
commit
91e9ab7760
@ -231,9 +231,6 @@ bool Client::executeMultiQuery(const String & all_queries_text)
|
||||
}
|
||||
catch (...)
|
||||
{
|
||||
if (!is_interactive)
|
||||
throw;
|
||||
|
||||
// Surprisingly, this is a client error. A server error would
|
||||
// have been reported w/o throwing (see onReceiveSeverException()).
|
||||
client_exception = std::make_unique<Exception>(getCurrentExceptionMessage(print_stack_trace), getCurrentExceptionCode());
|
||||
|
@ -142,7 +142,7 @@ bool LocalServer::executeMultiQuery(const String & all_queries_text)
|
||||
}
|
||||
catch (...)
|
||||
{
|
||||
if (!is_interactive)
|
||||
if (!is_interactive && !ignore_error)
|
||||
throw;
|
||||
|
||||
// Surprisingly, this is a client error. A server error would
|
||||
@ -472,7 +472,7 @@ catch (const DB::Exception & e)
|
||||
cleanup();
|
||||
|
||||
bool print_stack_trace = config().getBool("stacktrace", false);
|
||||
std::cerr << getExceptionMessage(e, print_stack_trace, true) << std::endl << std::endl;
|
||||
std::cerr << getExceptionMessage(e, print_stack_trace, true) << std::endl;
|
||||
return e.code() ? e.code() : -1;
|
||||
}
|
||||
catch (...)
|
||||
|
Loading…
Reference in New Issue
Block a user