From 805d2851fd086d66ae78c4a69446463105d1cba9 Mon Sep 17 00:00:00 2001 From: dkf Date: Mon, 5 May 2003 16:52:31 +0000 Subject: Corrected error message for grammar and spelling. --- ChangeLog | 5 +++++ generic/tclBasic.c | 6 +++--- tests/basic.test | 4 ++-- tests/interp.test | 8 ++++---- 4 files changed, 14 insertions(+), 9 deletions(-) diff --git a/ChangeLog b/ChangeLog index 33d332f..b94fd0a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2003-05-05 Donal K. Fellows + + * generic/tclBasic.c (Tcl_HideCommand): Fixed error message + grammar and spelling. + 2003-04-29 Vince Darley * generic/tclFileName.c: fix to bug reported privately by diff --git a/generic/tclBasic.c b/generic/tclBasic.c index 6605ed7..0ad0818 100644 --- a/generic/tclBasic.c +++ b/generic/tclBasic.c @@ -13,7 +13,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclBasic.c,v 1.75.2.1 2003/04/25 21:21:25 dgp Exp $ + * RCS: @(#) $Id: tclBasic.c,v 1.75.2.2 2003/05/05 16:52:33 dkf Exp $ */ #include "tclInt.h" @@ -1166,8 +1166,8 @@ Tcl_HideCommand(interp, cmdName, hiddenCmdToken) if (strstr(hiddenCmdToken, "::") != NULL) { Tcl_AppendStringsToObj(Tcl_GetObjResult(interp), - "cannot use namespace qualifiers as hidden command", - "token (rename)", (char *) NULL); + "cannot use namespace qualifiers in hidden command", + " token (rename)", (char *) NULL); return TCL_ERROR; } diff --git a/tests/basic.test b/tests/basic.test index c45a763..11b7bed 100644 --- a/tests/basic.test +++ b/tests/basic.test @@ -15,7 +15,7 @@ # See the file "license.terms" for information on usage and redistribution # of this file, and for a DISCLAIMER OF ALL WARRANTIES. # -# RCS: @(#) $Id: basic.test,v 1.25 2003/02/16 01:36:32 msofer Exp $ +# RCS: @(#) $Id: basic.test,v 1.25.2.1 2003/05/05 16:52:33 dkf Exp $ # package require tcltest 2 @@ -132,7 +132,7 @@ test basic-12.1 {Tcl_HideCommand, names of hidden cmds can't have namespace qual list [catch {test_interp hide test_ns_basic::p x} msg] $msg \ [catch {test_interp hide x test_ns_basic::p} msg1] $msg1 \ [interp delete test_interp] -} {1 {can only hide global namespace commands (use rename then hide)} 1 {cannot use namespace qualifiers as hidden commandtoken (rename)} {}} +} {1 {can only hide global namespace commands (use rename then hide)} 1 {cannot use namespace qualifiers in hidden command token (rename)} {}} test basic-12.2 {Tcl_HideCommand, a hidden cmd remembers its containing namespace} { catch {namespace delete test_ns_basic} diff --git a/tests/interp.test b/tests/interp.test index eda883f..a9b9e65 100644 --- a/tests/interp.test +++ b/tests/interp.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: interp.test,v 1.19.2.1 2003/03/12 17:51:33 dgp Exp $ +# RCS: @(#) $Id: interp.test,v 1.19.2.2 2003/05/05 16:52:33 dkf Exp $ if {[lsearch [namespace children] ::tcltest] == -1} { package require tcltest 2.1 @@ -1498,7 +1498,7 @@ test interp-20.45 {interp hide vs namespaces} { set l [list [catch {interp hide a foo::x} msg] $msg] interp delete a set l -} {1 {cannot use namespace qualifiers as hidden commandtoken (rename)}} +} {1 {cannot use namespace qualifiers in hidden command token (rename)}} test interp-20.46 {interp hide vs namespaces} { catch {interp delete a} interp create a @@ -1519,7 +1519,7 @@ test interp-20.47 {interp hide vs namespaces} { set l [list [catch {interp hide a x foo::x} msg] $msg] interp delete a set l -} {1 {cannot use namespace qualifiers as hidden commandtoken (rename)}} +} {1 {cannot use namespace qualifiers in hidden command token (rename)}} test interp-20.48 {interp hide vs namespaces} { catch {interp delete a} interp create a @@ -1530,7 +1530,7 @@ test interp-20.48 {interp hide vs namespaces} { set l [list [catch {interp hide a foo::x bar::x} msg] $msg] interp delete a set l -} {1 {cannot use namespace qualifiers as hidden commandtoken (rename)}} +} {1 {cannot use namespace qualifiers in hidden command token (rename)}} test interp-21.1 {interp hidden} { interp hidden {} -- cgit v0.12