History

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

Paul Brossier committed 9 years ago

Commit ce79a9e1 parent d0f0d551 file · +15 −11Browse files

Showing the changes to python (1 of 1 file). Show all

Unified · Split

python/lib/gen_code.py+15−11
@@ -183,17 +183,21 @@ class MappedObject(object): · 182 unmodified lines
183 183
184 def gen_code(self):184 def gen_code(self):
185 out = ""185 out = ""
186 out += self.gen_struct()186 try:
187 out += self.gen_doc()187 out += self.gen_struct()
188 out += self.gen_new()188 out += self.gen_doc()
189 out += self.gen_init()189 out += self.gen_new()
190 out += self.gen_del()190 out += self.gen_init()
191 out += self.gen_do()191 out += self.gen_del()
192 out += self.gen_memberdef()192 out += self.gen_do()
193 out += self.gen_set()193 out += self.gen_memberdef()
194 out += self.gen_get()194 out += self.gen_set()
195 out += self.gen_methodef()195 out += self.gen_get()
196 out += self.gen_typeobject()196 out += self.gen_methodef()
197 out += self.gen_typeobject()
198 except Exception as e:
199 print ("Failed generating code for", self.shortname)
200 raise
197 return out201 return out
198 202
199 def gen_struct(self):203 def gen_struct(self):

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t