tool/run: tolerate absence of load_spawn_id

Avoid backtrace in error message if load/fastboot fails at the
boot-loader stage.
This commit is contained in:
Norman Feske 2024-11-18 14:08:24 +01:00 committed by Christian Helmuth
parent 3bb894370a
commit 7019b795a6

View File

@ -3,5 +3,7 @@
# #
proc load_spawn_id { } { proc load_spawn_id { } {
global load_spawn_id global load_spawn_id
return $load_spawn_id if {[info exists load_spawn_id]} {
return $load_spawn_id }
return -1
} }