Append received data to CDC::TIMEOUT errors

The extra output of received data should be added only to timeout errors,
not to all errors.
This commit is contained in:
Markus Mäkelä
2018-08-27 12:31:02 +03:00
parent 01e1c616ba
commit 69f53f886d

View File

@ -280,7 +280,7 @@ bool Connection::connect(const std::string& table, const std::string& gtid)
{
rval = true;
}
else
else if (m_error == CDC::TIMEOUT)
{
m_error += ". Data received so far: '";
std::copy(m_buffer.begin(), m_buffer.end(), std::back_inserter(m_error));