diff options
author | Christoph Reimann <oss@arcor.de> | 2010-05-22 18:04:53 +0200 |
---|---|---|
committer | ChR <chr@calculon.(none)> | 2010-05-22 18:11:03 +0200 |
commit | cb4c5d2f464660abc596aa2761b2fb034be1c59a (patch) | |
tree | 5fe5a3877fb7b29c9ad80b7547aaf1a6018762da | |
parent | f91186b9f3e55e1d478476749c929b86e2865cc8 (diff) |
changed Exception message in case of unknown/unhandled XML tags
-rw-r--r-- | xcbgen/expr.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xcbgen/expr.py b/xcbgen/expr.py index 79ad8f6..b10b2eb 100644 --- a/xcbgen/expr.py +++ b/xcbgen/expr.py @@ -81,14 +81,14 @@ class Expression(object): self.rhs = Expression(list(elt)[0], parent) self.lenfield_name = self.rhs.lenfield_name - + elif elt.tag == 'value': # Constant expression self.nmemb = int(elt.text, 0) else: # Notreached - raise Exception('XXX') + raise Exception("undefined tag '%s'" % elt.tag) def fixed_size(self): |