Skip to content

Commit 0ae2b56

Browse files
committed
global route: add policy on iteration reporting on hard runs
fix tcl gaffes Signed-off-by: Øyvind Harboe <[email protected]>
1 parent 452d087 commit 0ae2b56

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

flow/scripts/global_route.tcl

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,13 @@ if {[info exists ::env(GLOBAL_ROUTE_ARGS)]} {
3535
global_route {*}$common_args {*}$congestion_args -congestion_iterations 20 -congestion_report_iter_step 1
3636
break
3737
} else {
38-
try {
39-
global_route {*}$common_args {*}$congestion_args -congestion_iterations 5
40-
break
41-
} catch {
42-
puts "First attempt failed. Retrying, reporting each iteration..."
38+
set result [catch {
39+
global_route {*}$common_args {*}$congestion_args -congestion_iterations 5
40+
break
41+
} errMsg]
42+
if {$result} {
43+
puts "First attempt failed. Retrying, reporting each iteration..."
44+
puts "Error message: $errMsg"
4345
}
4446
}
4547
}

0 commit comments

Comments
 (0)