"return -code error XXX" display error in better way

This commit is contained in:
Kamil Sopko 2016-03-02 00:45:49 +01:00
parent 3fd9b361b8
commit a8159dee16
1 changed files with 1 additions and 1 deletions

View File

@ -650,7 +650,7 @@ class App(QtCore.QObject):
:param text: text of error
:return: raise exception
"""
self.tcl.eval('error "%s"' % text)
self.tcl.eval('return -code error "%s"' % text)
raise Exception(text)