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:
parent
7ffb5efdbc
commit
e76ad2e48a
5 changed files with 21 additions and 19 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue