Changeset 3d650a7


Ignore:
Timestamp:
Mar 12, 2017, 3:49:43 PM (2 years ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
sampler
Children:
7dfd972
Parents:
98861c6
git-author:
Paul Brossier <piem@piem.org> (03/10/17 20:32:47)
git-committer:
Paul Brossier <piem@piem.org> (03/12/17 15:49:43)
Message:

python/lib/gen_code.py: show which failed before raising exception

File:
1 edited

Legend:

Unmodified
Added
Removed
  • python/lib/gen_code.py

    r98861c6 r3d650a7  
    191191    def gen_code(self):
    192192        out = ""
    193         out += self.gen_struct()
    194         out += self.gen_doc()
    195         out += self.gen_new()
    196         out += self.gen_init()
    197         out += self.gen_del()
    198         out += self.gen_do()
    199         out += self.gen_memberdef()
    200         out += self.gen_set()
    201         out += self.gen_get()
    202         out += self.gen_methodef()
    203         out += self.gen_typeobject()
     193        try:
     194            out += self.gen_struct()
     195            out += self.gen_doc()
     196            out += self.gen_new()
     197            out += self.gen_init()
     198            out += self.gen_del()
     199            out += self.gen_do()
     200            out += self.gen_memberdef()
     201            out += self.gen_set()
     202            out += self.gen_get()
     203            out += self.gen_methodef()
     204            out += self.gen_typeobject()
     205        except Exception as e:
     206            print ("Failed generating code for", self.shortname)
     207            raise
    204208        return out
    205209
Note: See TracChangeset for help on using the changeset viewer.