Просмотр исходного кода

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

Kamil Sopko 10 лет назад
Родитель
Сommit
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)