This is an automated email from Gerrit. "Nishanth Menon <[email protected]>" just uploaded a new patch set to Gerrit, which you can find at https://review.openocd.org/c/openocd/+/9724
-- gerrit commit 7a7c7856a0e5a4ca52f3dbfda6fe20d474717887 Author: Nishanth Menon <[email protected]> Date: Thu May 28 10:49:33 2026 -0500 tcl/target/ti/mspm0: fix mspm0_board_reset error message Bare 'error' call with no arguments caused a Tcl exception: "wrong # args: should be 'error message ?stacktrace?'" whenever catch {reset} returned non-zero. Fix by passing a descriptive message including the errno value. Change-Id: I001d6076268f868014229e0a22bbfd29bad078a3 Signed-off-by: Nishanth Menon <[email protected]> diff --git a/tcl/target/ti/mspm0.cfg b/tcl/target/ti/mspm0.cfg index 89c7847e5f..95867a75ed 100644 --- a/tcl/target/ti/mspm0.cfg +++ b/tcl/target/ti/mspm0.cfg @@ -160,9 +160,9 @@ add_help_text mspm0_start_bootloader "Ask explicitly for bootloader startup" proc mspm0_board_reset {} { set user_reset_config [reset_config] reset_config srst_only - set errno [catch {reset}] + set errno [catch {reset} errmsg] eval reset_config $user_reset_config - if {$errno} {error} + if {$errno} {error "board reset failed with error: $errmsg ($errno)"} } add_help_text mspm0_board_reset "Request a board level reset" --
