1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-25 06:31:14 +02:00

implement SysError errno handling

This commit is contained in:
Ben Burdette 2020-05-06 14:07:20 -06:00
parent 7ffb5efdbc
commit e76ad2e48a
5 changed files with 21 additions and 19 deletions

View file

@ -16,14 +16,6 @@ BaseError & BaseError::addPrefix(const FormatOrString & fs)
return *this;
}
std::string SysError::addErrno(const std::string & s)
{
errNo = errno;
return s + ": " + strerror(errNo);
}
std::optional<string> ErrorInfo::programName = std::nullopt;
std::ostream& operator<<(std::ostream &os, const hintformat &hf)