summaryrefslogtreecommitdiff
path: root/cpp/src/Slice/PythonUtil.cpp
diff options
context:
space:
mode:
authorMichi Henning <michi@zeroc.com>2004-12-29 06:14:33 +0000
committerMichi Henning <michi@zeroc.com>2004-12-29 06:14:33 +0000
commit40eeffd4c53635bc26f96e757539b232e7050264 (patch)
treee5ac62f0723e614951438ae392b27d9707a3051f /cpp/src/Slice/PythonUtil.cpp
parentBacked out previous check-in of IcePatch2 files -- they were checked in by (diff)
downloadice-40eeffd4c53635bc26f96e757539b232e7050264.tar.bz2
ice-40eeffd4c53635bc26f96e757539b232e7050264.tar.xz
ice-40eeffd4c53635bc26f96e757539b232e7050264.zip
Improved diagnostics for invalid metadata.
Diffstat (limited to 'cpp/src/Slice/PythonUtil.cpp')
-rw-r--r--cpp/src/Slice/PythonUtil.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/cpp/src/Slice/PythonUtil.cpp b/cpp/src/Slice/PythonUtil.cpp
index 564c582c9af..7db9f2fa3e9 100644
--- a/cpp/src/Slice/PythonUtil.cpp
+++ b/cpp/src/Slice/PythonUtil.cpp
@@ -2000,17 +2000,18 @@ Slice::Python::MetaDataVisitor::validate(const ContainedPtr& cont)
string::size_type pos = s.find(':', prefix.size());
if(pos == string::npos)
{
- cout << file << ": warning: metadata `" << s << "' uses deprecated syntax" << endl;
+ cout << file << ":" << cont->line() << ": warning: metadata `" << s << "' uses deprecated syntax"
+ << endl;
}
else if(s.substr(prefix.size(), pos - prefix.size()) != "type")
{
- cout << file << ": warning: ignoring invalid metadata `" << s << "'" << endl;
+ cout << file << ":" << cont->line() << ": warning: ignoring invalid metadata `" << s << "'" << endl;
}
if(SequencePtr::dynamicCast(cont))
{
continue;
}
- cout << file << ": warning: ignoring invalid metadata `" << s << "'" << endl;
+ cout << file << ":" << cont->line() << ": warning: ignoring invalid metadata `" << s << "'" << endl;
}
_history.insert(s);
}