diff --git a/lib/SimpleHttpClient/SimpleHttpClient.cpp b/lib/SimpleHttpClient/SimpleHttpClient.cpp index 81484bc588..efb930f438 100644 --- a/lib/SimpleHttpClient/SimpleHttpClient.cpp +++ b/lib/SimpleHttpClient/SimpleHttpClient.cpp @@ -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();