Преглед изворни кода

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

Kamil Sopko пре 10 година
родитељ
комит
a8159dee16
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      FlatCAMApp.py

+ 1 - 1
FlatCAMApp.py

@@ -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)