Forráskód Böngészése

fix display also for nonsignaled exceptions in execute_wrapper

Kamil Sopko 9 éve
szülő
commit
c2cdaaf452
2 módosított fájl, 3 hozzáadás és 1 törlés
  1. 2 0
      tclCommands/TclCommand.py
  2. 1 1
      tclCommands/TclCommandDrillcncjob.py

+ 2 - 0
tclCommands/TclCommand.py

@@ -393,5 +393,7 @@ class TclCommandSignaled(TclCommand):
             return self.output
 
         except Exception as unknown:
+            error_info=sys.exc_info()
             self.log.error("TCL command '%s' failed." % str(self))
+            self.app.display_tcl_error(unknown, error_info)
             self.raise_tcl_unknown_error(unknown)

+ 1 - 1
tclCommands/TclCommandDrillcncjob.py

@@ -39,7 +39,7 @@ class TclCommandDrillcncjob(TclCommand.TclCommandSignaled):
             ('travelz', 'Travel distance above material (example: 2.0).'),
             ('feedrate', 'Drilling feed rate.'),
             ('spindlespeed', 'Speed of the spindle in rpm (example: 4000).'),
-            ('toolchange', 'Enable tool changes (example: 1).'),
+            ('toolchange', 'Enable tool changes (example: True).'),
             ('outname', 'Name of the resulting Geometry object.')
         ]),
         'examples': []