RosettaCodeData/Task/Program-termination/Tcl/program-termination-1.tcl
2023-07-01 13:44:08 -04:00

6 lines
178 B
Tcl

if {$problem} {
# Print a “friendly” message...
puts stderr "some problem occurred"
# Indicate to the caller of the program that there was a problem
exit 1
}