summaryrefslogtreecommitdiff
path: root/python/modules/IcePy/Slice.cpp
diff options
context:
space:
mode:
authorJose <jose@zeroc.com>2017-01-09 21:06:27 +0100
committerJose <jose@zeroc.com>2017-01-09 21:06:27 +0100
commit6e829941340076b3844e4a95a4f6ffb890958bec (patch)
treed8ecb66d4b92adfed6538348ce9e5a09b28c569d /python/modules/IcePy/Slice.cpp
parentMerge remote-tracking branch 'origin/3.6' (diff)
downloadice-6e829941340076b3844e4a95a4f6ffb890958bec.tar.bz2
ice-6e829941340076b3844e4a95a4f6ffb890958bec.tar.xz
ice-6e829941340076b3844e4a95a4f6ffb890958bec.zip
Python/Ruby build fixes
Diffstat (limited to 'python/modules/IcePy/Slice.cpp')
-rw-r--r--python/modules/IcePy/Slice.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/python/modules/IcePy/Slice.cpp b/python/modules/IcePy/Slice.cpp
index e5005011572..b1544ebf5f0 100644
--- a/python/modules/IcePy/Slice.cpp
+++ b/python/modules/IcePy/Slice.cpp
@@ -16,6 +16,7 @@
#include <Slice/PythonUtil.h>
#include <Slice/Util.h>
#include <IceUtil/Options.h>
+#include <IceUtil/ConsoleUtil.h>
//
// Python headers needed for PyEval_EvalCode.
@@ -27,6 +28,7 @@ using namespace std;
using namespace IcePy;
using namespace Slice;
using namespace Slice::Python;
+using namespace IceUtilInternal;
extern "C"
PyObject*
@@ -233,22 +235,22 @@ IcePy_compile(PyObject* /*self*/, PyObject* args)
}
catch(const std::exception& ex)
{
- getErrorStream() << argSeq[0] << ": error:" << ex.what() << endl;
+ consoleErr << argSeq[0] << ": error:" << ex.what() << endl;
rc = EXIT_FAILURE;
}
catch(const std::string& msg)
{
- getErrorStream() << argSeq[0] << ": error:" << msg << endl;
+ consoleErr << argSeq[0] << ": error:" << msg << endl;
rc = EXIT_FAILURE;
}
catch(const char* msg)
{
- getErrorStream() << argSeq[0] << ": error:" << msg << endl;
+ consoleErr << argSeq[0] << ": error:" << msg << endl;
rc = EXIT_FAILURE;
}
catch(...)
{
- getErrorStream() << argSeq[0] << ": error:" << "unknown exception" << endl;
+ consoleErr << argSeq[0] << ": error:" << "unknown exception" << endl;
rc = EXIT_FAILURE;
}