From 08dcd460559c917b3314ca3efd260899e62afe0f Mon Sep 17 00:00:00 2001 From: Pius Sieber Date: Tue, 21 Apr 2026 18:52:11 +0200 Subject: [PATCH] Fix error reporting in checkpoint.tcl --- openroad/scripts/checkpoint.tcl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/openroad/scripts/checkpoint.tcl b/openroad/scripts/checkpoint.tcl index 2b628842..dec417f8 100644 --- a/openroad/scripts/checkpoint.tcl +++ b/openroad/scripts/checkpoint.tcl @@ -38,14 +38,14 @@ proc load_checkpoint {{checkpoint ""}} { # if no arg or the literal "latest", pick the most-recent .zip if {$checkpoint eq "" || $checkpoint eq "latest"} { set zips [lsort -decreasing -index 0 [glob -nocomplain -directory $save_dir -types f *.zip]] - if {![llength $zips]} {utl::error "No checkpoint .zip found in $save_dir"; return} + if {![llength $zips]} {utl::report "No checkpoint .zip found in $save_dir"; return} set checkpoint [file rootname [file tail [lindex $zips 0]]] } utl::report "Loading checkpoint $checkpoint" # glob search for the checkpoint inside save_dir set candidates [glob -nocomplain -directory $save_dir -types f "*${checkpoint}*"] - if {![llength $candidates]} {utl::error "No checkpoint found matching: $checkpoint (.zip/.odb)"; return} + if {![llength $candidates]} {utl::report "No checkpoint found matching: $checkpoint (.zip/.odb)"; return} set ext [file extension [lindex $candidates 0]] set name [lindex $candidates 0] @@ -63,7 +63,7 @@ proc load_checkpoint {{checkpoint ""}} { read_db $name set sdc [file rootname $name].sdc if {[file exists $sdc]} {read_sdc $sdc} - } else {utl::error "Unsupported checkpoint type: $ext"} + } else {utl::report "Unsupported checkpoint type: $ext"} } proc load_checkpoint_def { checkpoint_name } {