فهرست منبع

remove duplicity when print error

Kamil Sopko 10 سال پیش
والد
کامیت
2cc3d811c5
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      FlatCAMApp.py

+ 1 - 1
FlatCAMApp.py

@@ -662,7 +662,7 @@ class App(QtCore.QObject):
             #this will display more precise answer if something in  TCL shell fail
             #this will display more precise answer if something in  TCL shell fail
             result = self.tcl.eval("set errorInfo")
             result = self.tcl.eval("set errorInfo")
             self.log.error("Exec command Exception: %s" % (str(e)+ '\n' + result + '\n'))
             self.log.error("Exec command Exception: %s" % (str(e)+ '\n' + result + '\n'))
-            self.shell.append_error('ERROR: ' + str(e) + '\n' + result + '\n')
+            self.shell.append_error('ERROR: ' + result + '\n')
             #show error in console and just return
             #show error in console and just return
         return
         return