diff options
author | vincentdarley <vincentdarley> | 2002-07-02 12:16:04 (GMT) |
---|---|---|
committer | vincentdarley <vincentdarley> | 2002-07-02 12:16:04 (GMT) |
commit | 1cd35d50e23acf4f42ece59c185ec95409e2e446 (patch) | |
tree | 576c4426d4b163c9be109862d760b31c11d7bbf8 | |
parent | 782734742ecd2e4fdda69f7cff40e27eb51887b6 (diff) | |
download | tcl-1cd35d50e23acf4f42ece59c185ec95409e2e446.zip tcl-1cd35d50e23acf4f42ece59c185ec95409e2e446.tar.gz tcl-1cd35d50e23acf4f42ece59c185ec95409e2e446.tar.bz2 |
clearer error msgs for file link
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | generic/tclCmdAH.c | 4 | ||||
-rw-r--r-- | tests/fCmd.test | 6 |
3 files changed, 11 insertions, 5 deletions
@@ -1,3 +1,9 @@ +2002-07-02 Vince Darley <vincentdarley@users.sourceforge.net> + + * tests/fCmd.test: + * generic/tclCmdAH.c: clearer error msgs for 'file link', + as per the man page. + 2002-07-01 Joe English <jenglish@users.sourceforge.net> * doc/Access.3: diff --git a/generic/tclCmdAH.c b/generic/tclCmdAH.c index bc6b655..2992367 100644 --- a/generic/tclCmdAH.c +++ b/generic/tclCmdAH.c @@ -11,7 +11,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclCmdAH.c,v 1.26 2002/06/21 14:22:28 vincentdarley Exp $ + * RCS: @(#) $Id: tclCmdAH.c,v 1.27 2002/07/02 12:16:05 vincentdarley Exp $ */ #include "tclInt.h" @@ -961,7 +961,7 @@ Tcl_FileObjCmd(dummy, interp, objc, objv) if (objc < 3 || objc > 5) { Tcl_WrongNumArgs(interp, 2, objv, - "?-linktype? source ?target?"); + "?-linktype? linkname ?target?"); return TCL_ERROR; } diff --git a/tests/fCmd.test b/tests/fCmd.test index 19fbb07..8891f40 100644 --- a/tests/fCmd.test +++ b/tests/fCmd.test @@ -10,7 +10,7 @@ # See the file "license.terms" for information on usage and redistribution # of this file, and for a DISCLAIMER OF ALL WARRANTIES. # -# RCS: @(#) $Id: fCmd.test,v 1.17 2002/07/01 14:35:10 dgp Exp $ +# RCS: @(#) $Id: fCmd.test,v 1.18 2002/07/02 12:16:05 vincentdarley Exp $ # if {[lsearch [namespace children] ::tcltest] == -1} { @@ -2181,11 +2181,11 @@ if {[string equal $tcl_platform(platform) "windows"]} { test fCmd-28.1 {file link} {hasLinks} { list [catch {file link} msg] $msg -} {1 {wrong # args: should be "file link ?-linktype? source ?target?"}} +} {1 {wrong # args: should be "file link ?-linktype? linkname ?target?"}} test fCmd-28.2 {file link} {hasLinks} { list [catch {file link a b c d} msg] $msg -} {1 {wrong # args: should be "file link ?-linktype? source ?target?"}} +} {1 {wrong # args: should be "file link ?-linktype? linkname ?target?"}} test fCmd-28.3 {file link} {hasLinks} { list [catch {file link abc b c} msg] $msg |