"return -code error XXX" display error in better way
This commit is contained in:
parent
3fd9b361b8
commit
a8159dee16
|
@ -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)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue