summaryrefslogtreecommitdiff
path: root/cpp/src/IcePatch2/Calc.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/IcePatch2/Calc.cpp')
-rw-r--r--cpp/src/IcePatch2/Calc.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/cpp/src/IcePatch2/Calc.cpp b/cpp/src/IcePatch2/Calc.cpp
index be17981a6b6..17cfdd62739 100644
--- a/cpp/src/IcePatch2/Calc.cpp
+++ b/cpp/src/IcePatch2/Calc.cpp
@@ -9,6 +9,7 @@
#include <IceUtil/Options.h>
#include <IceUtil/Unicode.h>
+#include <IceUtil/StringUtil.h>
#include <IcePatch2/Util.h>
#include <OS.h>
@@ -191,7 +192,7 @@ main(int argc, char* argv[])
string cwd;
if(OS::getcwd(cwd) != 0)
{
- throw "cannot get the current directory:\n" + lastError();
+ throw "cannot get the current directory:\n" + IceUtilInternal::lastErrorToString();
}
if(!isAbsolute(absDataDir))