This commit is contained in:
Alexey Milovidov 2020-05-30 19:39:34 +03:00
parent 421a62e978
commit 6a7ed8881e

View File

@ -1583,7 +1583,12 @@ private:
if (std::string::npos != embedded_stack_trace_pos && !config().getBool("stacktrace", false))
text.resize(embedded_stack_trace_pos);
std::cerr << "\nReceived exception from server (version " << server_version << "):" << std::endl
/// If we probably have progress bar, we should add additional newline,
/// otherwise exception may display concatenated with the progress bar.
if (need_render_progress)
std::cerr << '\n';
std::cerr << "Received exception from server (version " << server_version << "):" << std::endl
<< "Code: " << e.code() << ". " << text << std::endl;
}