diff options
Diffstat (limited to 'cpp/src/IcePatch2/Calc.cpp')
-rw-r--r-- | cpp/src/IcePatch2/Calc.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cpp/src/IcePatch2/Calc.cpp b/cpp/src/IcePatch2/Calc.cpp index e4b2fdb2c6e..c0564f69dcd 100644 --- a/cpp/src/IcePatch2/Calc.cpp +++ b/cpp/src/IcePatch2/Calc.cpp @@ -96,7 +96,7 @@ main(int argc, char* argv[]) if(getcwd(cwd, PATH_MAX) == NULL) #endif { - throw string("cannot get the current directory: ") + strerror(errno); + throw "cannot get the current directory: " + lastError(); } dataDir = normalize(string(cwd) + '/' + dataDir); |