Commit 42501f0e authored by oharboe's avatar oharboe
Browse files

throw exception upon syntax error.

git-svn-id: svn://svn.berlios.de/openocd/trunk@838 b42882b7-edfa-0310-969c-e2dbd0fdcd60
parent b78f488d
...@@ -120,7 +120,7 @@ proc unknown {args} { ...@@ -120,7 +120,7 @@ proc unknown {args} {
return [eval "$cmd_name [lrange $args 2 end]"] return [eval "$cmd_name [lrange $args 2 end]"]
} }
# This really is an unknown command. # This really is an unknown command.
puts "Unknown command: $args" return -code error "Unknown command: $args"
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment