From 42501f0ef0beb573fcbe904320b9a0fba02dcc3b Mon Sep 17 00:00:00 2001 From: oharboe Date: Sat, 19 Jul 2008 10:37:41 +0000 Subject: throw exception upon syntax error. git-svn-id: svn://svn.berlios.de/openocd/trunk@838 b42882b7-edfa-0310-969c-e2dbd0fdcd60 --- src/helper/startup.tcl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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" } -- cgit v1.2.3