1
0
Fork 0

don't log nonsense errors

This commit is contained in:
Jan Steemann 2014-04-03 23:23:08 +02:00
parent 2740803d0b
commit 30f9dba42f
1 changed files with 2 additions and 2 deletions

View File

@ -129,7 +129,7 @@ namespace triagens {
TRI_set_errno(TRI_ERROR_NO_ERROR);
if (! _connection->handleWrite(remainingTime, (void*) (_writeBuffer.c_str() + _written), _writeBuffer.length() - _written, &bytesWritten)) {
if (errno != TRI_ERROR_NO_ERROR) {
if (TRI_errno() != TRI_ERROR_NO_ERROR) {
setErrorMessage(TRI_last_error(), false);
}
this->close();
@ -177,7 +177,7 @@ namespace triagens {
break;
}
if (errno != TRI_ERROR_NO_ERROR) {
if (TRI_errno() != TRI_ERROR_NO_ERROR) {
setErrorMessage(TRI_last_error(), false);
}
this->close();