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:
parent
e12883037c
commit
1ac2b592fb
|
|
@ -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} {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue