summaryrefslogtreecommitdiff
path: root/cpp/test/WinRT/TestSuite/MainPage.xaml.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/test/WinRT/TestSuite/MainPage.xaml.cpp')
-rw-r--r--cpp/test/WinRT/TestSuite/MainPage.xaml.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/cpp/test/WinRT/TestSuite/MainPage.xaml.cpp b/cpp/test/WinRT/TestSuite/MainPage.xaml.cpp
index 5daab0e7d0f..696b40f5e52 100644
--- a/cpp/test/WinRT/TestSuite/MainPage.xaml.cpp
+++ b/cpp/test/WinRT/TestSuite/MainPage.xaml.cpp
@@ -8,7 +8,6 @@
// **********************************************************************
#include "MainPage.xaml.h"
-#include <IceUtil/StringUtil.h>
#include <TestCommon.h>
#include <string>
#include <iostream>
@@ -115,7 +114,9 @@ public:
_hnd = LoadPackagedLibrary(IceUtil::stringToWstring(_test).c_str(), 0);
if(_hnd == 0)
{
- printLineToConsoleOutput("failed to load `" + _test + "': " + IceUtilInternal::lastErrorToString());
+ ostringstream os;
+ os << "failed to load `" << _test + "': error code: " << GetLastError();
+ printLineToConsoleOutput(os.str());
completed(-1);
return;
}