"return -code error XXX" display error in better way
This commit is contained in:
@@ -650,7 +650,7 @@ class App(QtCore.QObject):
|
|||||||
:param text: text of error
|
:param text: text of error
|
||||||
:return: raise exception
|
:return: raise exception
|
||||||
"""
|
"""
|
||||||
self.tcl.eval('error "%s"' % text)
|
self.tcl.eval('return -code error "%s"' % text)
|
||||||
raise Exception(text)
|
raise Exception(text)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user