postinit_commands: print error message if execution of specified commands fails

This commit is contained in:
stefan schippers 2024-04-16 00:17:02 +02:00
parent 8d68beb914
commit 83f62bfdf9
1 changed files with 3 additions and 1 deletions

View File

@ -8157,7 +8157,9 @@ proc source_user_tcl_files {} {
proc eval_postinit_commands {} {
global postinit_commands
if {[info exists postinit_commands]} {
catch {uplevel #0 $postinit_commands}
if {[catch {uplevel #0 $postinit_commands} res]} {
puts "executing $postinit_commands:\n\n$res"
}
}
}