diff options
author | Eelco Dolstra <e.dolstra@tudelft.nl> | 2003-06-27 14:56:12 +0000 |
---|---|---|
committer | Eelco Dolstra <e.dolstra@tudelft.nl> | 2003-06-27 14:56:12 +0000 |
commit | 40b5936691fe2448dea0080e2319cc340bc7c65c (patch) | |
tree | 66144e3af56bc1d7035134b85f5e00641ab305e0 /src/util.cc | |
parent | 3da9687854e029e9df3b612fd592d2d5a622bb20 (diff) |
* Realisation of Derive(...) expressions.
Diffstat (limited to 'src/util.cc')
-rw-r--r-- | src/util.cc | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/util.cc b/src/util.cc index c6a0c1199..a042a65b0 100644 --- a/src/util.cc +++ b/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; } |