mirror of
https://github.com/NixOS/nix
synced 2025-06-30 19:57:59 +02:00
* Realisation of Derive(...) expressions.
This commit is contained in:
parent
3da9687854
commit
40b5936691
7 changed files with 193 additions and 165 deletions
11
src/util.cc
11
src/util.cc
|
@ -11,10 +11,15 @@
|
|||
string thisSystem = SYSTEM;
|
||||
|
||||
|
||||
SysError::SysError(string msg)
|
||||
Error::Error(const format & f)
|
||||
{
|
||||
err = f.str();
|
||||
}
|
||||
|
||||
|
||||
SysError::SysError(const format & f)
|
||||
: Error(format("%1%: %2%") % f.str() % strerror(errno))
|
||||
{
|
||||
char * sysMsg = strerror(errno);
|
||||
err = msg + ": " + sysMsg;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue