Show better log in case of ENOENT error returned by backend

This commit is contained in:
HanzZ 2013-01-31 19:12:00 +01:00
parent d85474b70b
commit 4c1fcb4344

View file

@ -352,6 +352,10 @@ void NetworkPluginServer::start() {
}
else {
LOG4CXX_ERROR(logger, "Backend can not be started, exit_code=" << WEXITSTATUS(status) << ", possible error: " << strerror(WEXITSTATUS(status)));
if (WEXITSTATUS(status) == ENOENT) {
LOG4CXX_ERROR(logger, "This usually means the path to backend executable defined in config file as '[service] backend=\"...\"' is wrong or the executable does not exists.");
}
}
LOG4CXX_ERROR(logger, "Check backend log for more details");
continue;