Commit edcb9a77 authored by Maxime Perrotin's avatar Maxime Perrotin
Browse files

Add error message if model is unparsable

parent 3ffe7945
......@@ -2050,8 +2050,12 @@ class SDL_View(QtGui.QGraphicsView, object):
process, = ast.processes
if not process.instance_of_name:
self.filename = process.filename
elif process.instance_of_ref is not None:
self.filename = process.instance_of_ref.filename
LOG.error("Unrecoverable parsing errors were detected")
self.messages_window.addItem("Could not parse model")
self.readonly_pr = ast.pr_files - {self.filename}
# More than one process
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment