From c1ce7caa97b3dd6f7536d5c3b8b482d823c51891 Mon Sep 17 00:00:00 2001 From: Mark Spruiell Date: Mon, 2 Feb 2009 10:15:06 -0800 Subject: bug 3644 - improve integration between eclipse plugin and translator bug 3657 - improve error reporting in translators --- cpp/src/Slice/PythonUtil.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'cpp/src/Slice/PythonUtil.cpp') diff --git a/cpp/src/Slice/PythonUtil.cpp b/cpp/src/Slice/PythonUtil.cpp index 1917192ae29..c1c91b3f289 100644 --- a/cpp/src/Slice/PythonUtil.cpp +++ b/cpp/src/Slice/PythonUtil.cpp @@ -2070,7 +2070,7 @@ Slice::Python::MetaDataVisitor::validateGlobal(const DefinitionContextPtr& dc) static const string packagePrefix = "python:package:"; if(s.find(packagePrefix) != 0 || s.size() == packagePrefix.size()) { - cerr << dc->filename() << ": warning: ignoring invalid global metadata `" << s << "'" << endl; + emitWarning(dc->filename(), "", "ignoring invalid global metadata `" + s + "'"); } } _history.insert(s); @@ -2102,7 +2102,7 @@ Slice::Python::MetaDataVisitor::validateSequence(const DefinitionContextPtr& dc, } } } - cerr << dc->filename() << ":" << line << ": warning: ignoring metadata `" << s << "'" << endl; + emitWarning(dc->filename(), "", "ignoring metadata `" + s + "'"); } } } @@ -2120,7 +2120,7 @@ Slice::Python::MetaDataVisitor::reject(const ContainedPtr& cont) { DefinitionContextPtr dc = cont->definitionContext(); assert(dc); - cerr << dc->filename() << ":" << cont->line() << ": warning: ignoring metadata `" << *p << "'" << endl; + emitWarning(dc->filename(), "", "ignoring metadata `" + *p + "'"); } } } -- cgit v1.2.3