diff options
| author | dkf <donal.k.fellows@manchester.ac.uk> | 2014-06-16 09:24:39 (GMT) |
|---|---|---|
| committer | dkf <donal.k.fellows@manchester.ac.uk> | 2014-06-16 09:24:39 (GMT) |
| commit | ab6933ef6bad77e36a80b261ffd48e2cc8d7575f (patch) | |
| tree | e0cbefb40e0eca1e299ca0c04c58721a89f5f83e | |
| parent | c20374dfa6d2d1a90907eb84464d5572e5406940 (diff) | |
| download | tcl-ab6933ef6bad77e36a80b261ffd48e2cc8d7575f.zip tcl-ab6933ef6bad77e36a80b261ffd48e2cc8d7575f.tar.gz tcl-ab6933ef6bad77e36a80b261ffd48e2cc8d7575f.tar.bz2 | |
[311e61d12a] Generate error code in *all* places where commands are looked up.
| -rw-r--r-- | library/init.tcl | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/library/init.tcl b/library/init.tcl index f63eedf..bb17319 100644 --- a/library/init.tcl +++ b/library/init.tcl @@ -398,7 +398,8 @@ proc unknown args { return -code error "ambiguous command name \"$name\": [lsort $cmds]" } } - return -code error "invalid command name \"$name\"" + return -code error -errorcode [list TCL LOOKUP COMMAND $name] \ + "invalid command name \"$name\"" } # auto_load -- |
