From 1cd35d50e23acf4f42ece59c185ec95409e2e446 Mon Sep 17 00:00:00 2001 From: vincentdarley Date: Tue, 2 Jul 2002 12:16:04 +0000 Subject: clearer error msgs for file link --- ChangeLog | 6 ++++++ generic/tclCmdAH.c | 4 ++-- tests/fCmd.test | 6 +++--- 3 files changed, 11 insertions(+), 5 deletions(-) diff --git a/ChangeLog b/ChangeLog index 72caad2..0af89ff 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2002-07-02 Vince Darley + + * tests/fCmd.test: + * generic/tclCmdAH.c: clearer error msgs for 'file link', + as per the man page. + 2002-07-01 Joe English * 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 -- cgit v0.12