summaryrefslogtreecommitdiff
path: root/cpp/src/slice2cpp/Main.cpp
diff options
context:
space:
mode:
authorMark Spruiell <mes@zeroc.com>2009-02-02 10:15:06 -0800
committerMark Spruiell <mes@zeroc.com>2009-02-02 10:15:06 -0800
commitc1ce7caa97b3dd6f7536d5c3b8b482d823c51891 (patch)
tree85be09ca58cee5a9dffa27cbcf3ce67a0d2b25f2 /cpp/src/slice2cpp/Main.cpp
parentRemoved old makedist scripts (diff)
downloadice-c1ce7caa97b3dd6f7536d5c3b8b482d823c51891.tar.bz2
ice-c1ce7caa97b3dd6f7536d5c3b8b482d823c51891.tar.xz
ice-c1ce7caa97b3dd6f7536d5c3b8b482d823c51891.zip
bug 3644 - improve integration between eclipse plugin and translator
bug 3657 - improve error reporting in translators
Diffstat (limited to 'cpp/src/slice2cpp/Main.cpp')
-rw-r--r--cpp/src/slice2cpp/Main.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/cpp/src/slice2cpp/Main.cpp b/cpp/src/slice2cpp/Main.cpp
index 86eafe9e64f..edc05acd543 100644
--- a/cpp/src/slice2cpp/Main.cpp
+++ b/cpp/src/slice2cpp/Main.cpp
@@ -12,6 +12,7 @@
#include <IceUtil/StaticMutex.h>
#include <Slice/Preprocessor.h>
#include <Slice/FileTracker.h>
+#include <Slice/Util.h>
#include <Gen.h>
using namespace std;
@@ -155,7 +156,7 @@ main(int argc, char* argv[])
if(args.empty())
{
- cerr << argv[0] << ": no input file" << endl;
+ getErrorStream() << argv[0] << ": error: no input file" << endl;
usage(argv[0]);
return EXIT_FAILURE;
}
@@ -229,7 +230,7 @@ main(int argc, char* argv[])
// cleanup any created files.
FileTracker::instance()->cleanup();
u->destroy();
- cerr << argv[0] << ": " << ex.reason() << endl;
+ getErrorStream() << argv[0] << ": error: " << ex.reason() << endl;
return EXIT_FAILURE;
}
}