From 7019b795a68bcfd338b4a75589d7d0f6611b4d82 Mon Sep 17 00:00:00 2001 From: Norman Feske Date: Mon, 18 Nov 2024 14:08:24 +0100 Subject: [PATCH] tool/run: tolerate absence of load_spawn_id Avoid backtrace in error message if load/fastboot fails at the boot-loader stage. --- tool/run/load.inc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tool/run/load.inc b/tool/run/load.inc index 4d540248ed..6f5e196696 100644 --- a/tool/run/load.inc +++ b/tool/run/load.inc @@ -3,5 +3,7 @@ # proc load_spawn_id { } { global load_spawn_id - return $load_spawn_id + if {[info exists load_spawn_id]} { + return $load_spawn_id } + return -1 }