Refactored paint_connect() and path_connect() to receive and return FlatCAMRTreeStorage objects. Updated unittests acordingly.

This commit is contained in:
jpcaram
2015-01-29 15:52:03 -05:00
parent a1345f0a58
commit 6733ebbfa8
4 changed files with 131 additions and 84 deletions

View File

@@ -1565,6 +1565,12 @@ class App(QtCore.QObject):
app_obj.inform.emit("[error] Failed to open file: " + filename)
app_obj.progress.emit(0)
raise IOError('Failed to open file: ' + filename)
except ParseError, e:
app_obj.inform.emit("[error] Failed to parse file: " + filename)
app_obj.progress.emit(0)
self.log.error(str(e))
raise
return
# Further parsing
self.progress.emit(70) # TODO: Note the mixture of self and app_obj used here