Added line number information to status bar message on parse error.

This commit is contained in:
Juan Pablo Caram
2015-11-30 12:36:03 -05:00
parent 3f6ba30f3e
commit 89f3d6e3e3
3 changed files with 9 additions and 2 deletions

View File

@@ -1634,7 +1634,7 @@ class App(QtCore.QObject):
raise IOError('Failed to open file: ' + filename)
except ParseError, e:
app_obj.inform.emit("[error] Failed to parse file: " + filename)
app_obj.inform.emit("[error] Failed to parse file: " + filename + ". " + e[0])
app_obj.progress.emit(0)
self.log.error(str(e))
raise