Skip to content

Commit ccf8f2d

Browse files
committed
check_config.tcl catch error in puts
used for missing mandatory item $::kins(module) Ref: https://forum.linuxcnc.org/24-hal-components/44989-kinematics-module-load-error#233683
1 parent 3633289 commit ccf8f2d

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

lib/hallib/check_config.tcl

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,15 @@ set ::DEFAULT_AXIS_MIN_LIMIT -1e99
2121
set ::DEFAULT_AXIS_MAX_LIMIT +1e99
2222
#----------------------------------------------------------------------
2323
proc warnings msg {
24-
puts "\n$::progname: ($::kins(module) kinematics) WARNING:"
24+
puts -nonewline "\n$::progname:\n"
25+
catch {puts ($::kins(module) kinematics) WARNING:"}
2526
foreach m $msg {puts " $m"}
2627
puts ""
2728
} ;# warnings
2829
2930
proc err_exit msg {
30-
puts "\n$::progname: ($::kins(module) kinematics) ERROR:"
31+
puts -nonewline "\n$::progname:\n"
32+
catch {puts ($::kins(module) kinematics) ERROR:"}
3133
foreach m $msg {puts " $m"}
3234
puts ""
3335
exit 1

0 commit comments

Comments
 (0)