From c2cdaaf45234029ae43cc4a1b438258fad6decac Mon Sep 17 00:00:00 2001 From: Kamil Sopko Date: Sun, 3 Apr 2016 14:37:40 +0200 Subject: [PATCH] fix display also for nonsignaled exceptions in execute_wrapper --- tclCommands/TclCommand.py | 2 ++ tclCommands/TclCommandDrillcncjob.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/tclCommands/TclCommand.py b/tclCommands/TclCommand.py index 57e4a9d1..24f8295f 100644 --- a/tclCommands/TclCommand.py +++ b/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) \ No newline at end of file diff --git a/tclCommands/TclCommandDrillcncjob.py b/tclCommands/TclCommandDrillcncjob.py index 17441967..f65931fd 100644 --- a/tclCommands/TclCommandDrillcncjob.py +++ b/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': []