- return _error->Error(_("Something wicked happened resolving '%s:%s' (%i)"),
- Host.c_str(),ServStr,Res);
+ if (Res == EAI_SYSTEM)
+ return _error->Error(_("System error resolving '%s:%s' (%s)"),
+ Host.c_str(),ServStr,strerror(errno));
+ return _error->Error(_("Something wicked happened resolving '%s:%s' (%i - %s)"),
+ Host.c_str(),ServStr,Res,gai_strerror(Res));