diff options
author | Johan Dahlin <johan@gnome.org> | 2010-09-02 23:28:43 -0300 |
---|---|---|
committer | Johan Dahlin <johan@gnome.org> | 2010-09-02 23:28:55 -0300 |
commit | d9f8c0002c9dbd9154b49d3b23c1bd85423760ab (patch) | |
tree | 429fab7a2922a4d9935eabfa8cc43ac660ceb47a /giscanner | |
parent | c3a180975772ba9943e27e1040d321534579810e (diff) |
[test] Add warning tests for enums
Diffstat (limited to 'giscanner')
-rw-r--r-- | giscanner/transformer.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/giscanner/transformer.py b/giscanner/transformer.py index 120218f..a1f6193 100644 --- a/giscanner/transformer.py +++ b/giscanner/transformer.py @@ -279,7 +279,7 @@ raise ValueError.""" try: (ns, name) = self.split_csymbol(ident) except ValueError, e: - raise TransformerException("Unknown namespace") + raise TransformerException(str(e)) if ns != self._namespace: raise TransformerException( "Skipping foreign symbol from namespace %s" % (ns.name, )) @@ -353,7 +353,7 @@ raise ValueError.""" try: name = self._strip_symbol(child, is_constant=True) except TransformerException, e: - message.warn_symbol(child, e) + message.warn_symbol(symbol, e) return None members.append(ast.Member(name.lower(), child.const_int, @@ -362,7 +362,7 @@ raise ValueError.""" try: enum_name = self.strip_identifier(symbol.ident) except TransformerException, e: - message.warn(e) + message.warn_symbol(symbol, e) return None if symbol.base_type.is_bitfield: klass = ast.Bitfield |