Skip to content

Commit 35a40be

Browse files
committed
[tapcell] Use ord::error instead of exit in TCL scripts
1 parent c580f46 commit 35a40be

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

src/tapcell/src/tapcell.tcl

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -581,31 +581,27 @@ proc tapcell { args } {
581581
set master [$db findMaster $cnrcap_nwin_master]
582582

583583
if { ![string match [$master getConstName] $cnrcap_nwin_master] } {
584-
puts "\[ERROR\] Master $cnrcap_nwin_master not found"
585-
exit 1
584+
ord::error "\[ERROR\] Master $cnrcap_nwin_master not found"
586585
}
587586
} else {
588587
set master [$db findMaster $cnrcap_nwout_master]
589588

590589
if { ![string match [$master getConstName] $cnrcap_nwout_master] } {
591-
puts "\[ERROR\] Master $cnrcap_nwout_master not found"
592-
exit 1
590+
ord::error "\[ERROR\] Master $cnrcap_nwout_master not found"
593591
}
594592
}
595593
} elseif {$top_bottom == -1} {
596594
if {[string match "R0" $ori]} {
597595
set master [$db findMaster $cnrcap_nwin_master]
598596

599597
if { ![string match [$master getConstName] $cnrcap_nwin_master] } {
600-
puts "\[ERROR\] Master $cnrcap_nwin_master not found"
601-
exit 1
598+
ord::error "\[ERROR\] Master $cnrcap_nwin_master not found"
602599
}
603600
} else {
604601
set master [$db findMaster $cnrcap_nwout_master]
605602

606603
if { ![string match [$master getConstName] $cnrcap_nwout_master] } {
607-
puts "\[ERROR\] Master $cnrcap_nwout_master not found"
608-
exit 1
604+
ord::error "\[ERROR\] Master $cnrcap_nwout_master not found"
609605
}
610606
}
611607
} else {

0 commit comments

Comments
 (0)