1
0
Fork 0

Add the integer value of the error to our message.

This commit is contained in:
Willi Goesgens 2014-10-10 13:22:57 +02:00
parent 684604d8f6
commit 4af23ddfe3
1 changed files with 4 additions and 2 deletions

View File

@ -1027,12 +1027,14 @@ TRI_external_status_t TRI_CheckExternalProcess (TRI_external_id_t pid,
else if (res == -1) {
int err = errno;
LOG_WARNING("waitpid returned error for pid %d: %s",
(int) external->_pid,
(int) external->_pid,
TRI_errno_string(err));
status._errorMessage =
std::string("waitpid returned error for pid ") +
triagens::basics::StringUtils::itoa(external->_pid) +
std::string(": ") +
std::string(": (") +
triagens::basics::StringUtils::itoa(err) +
std::string(") ") +
std::string(TRI_errno_string(err));
}
else if (static_cast<TRI_pid_t>(external->_pid) == static_cast<TRI_pid_t>(res)) {