Changed what was a not-very-well thought out behavior: On being

passed an invalid setup file, the netgen "lvs" script uses a
trivial default setup and issues no error or warning.  Replaced
this behavior with an error message and a hard stop.
This commit is contained in:
Tim Edwards 2023-03-07 08:53:06 -05:00
parent e12883037c
commit 1ac2b592fb
2 changed files with 5 additions and 3 deletions

View File

@ -1 +1 @@
1.5.249 1.5.250

View File

@ -508,8 +508,10 @@ proc netgen::lvs { name1 name2 {setupfile setup.tcl} {logfile comp.out} args} {
puts stdout "Warning: There were errors reading the setup file" puts stdout "Warning: There were errors reading the setup file"
} }
} elseif {[string first nosetup $setupfile] < 0} { } elseif {[string first nosetup $setupfile] < 0} {
netgen::permute default ;# transistors and resistors puts stderr "Error: Setup file $setupfile does not exist."
netgen::property default return
} else {
puts stderr "No setup file specified. Continuing without a setup."
} }
if {[string first nolog $logfile] < 0} { if {[string first nolog $logfile] < 0} {