From: oharboe Date: Sat, 19 Jul 2008 10:37:41 +0000 (+0000) Subject: throw exception upon syntax error. X-Git-Tag: v0.1.0~461 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=42501f0ef0beb573fcbe904320b9a0fba02dcc3b;p=openocd throw exception upon syntax error. git-svn-id: svn://svn.berlios.de/openocd/trunk@838 b42882b7-edfa-0310-969c-e2dbd0fdcd60 --- diff --git a/src/helper/startup.tcl b/src/helper/startup.tcl index 6e5f577d..2f90911a 100644 --- a/src/helper/startup.tcl +++ b/src/helper/startup.tcl @@ -120,7 +120,7 @@ proc unknown {args} { return [eval "$cmd_name [lrange $args 2 end]"] } # This really is an unknown command. - puts "Unknown command: $args" + return -code error "Unknown command: $args" }