diff --git a/VERSION b/VERSION index fdd8146..e903888 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.5.312 +1.5.313 diff --git a/tcltk/netgen.tcl.in b/tcltk/netgen.tcl.in index 7bdf978..994febf 100644 --- a/tcltk/netgen.tcl.in +++ b/tcltk/netgen.tcl.in @@ -516,6 +516,14 @@ proc netgen::lvs { name1 name2 {setupfile setup.tcl} {logfile comp.out} args} { } } close $fsetup + if {$command != {}} { + # Incomplete command. Evaluate it to get a meaningful error message + if {[catch {uplevel 1 [list namespace eval netgen $command]} msg]} { + set msg [string trimright $msg "\n"] + puts stderr "Error $setupfile:$sline (ignoring), $msg" + incr perrors + } + } } else { puts stdout "Error: Cannot read the setup file $setupfile" }