diff options
Diffstat (limited to 'library/parray.tcl')
-rw-r--r-- | library/parray.tcl | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/library/parray.tcl b/library/parray.tcl index e331d4d..a9c2cb1 100644 --- a/library/parray.tcl +++ b/library/parray.tcl @@ -1,8 +1,6 @@ # parray: # Print the contents of a global array on stdout. # -# RCS: @(#) $Id: parray.tcl,v 1.4 2005/06/03 10:02:23 dkf Exp $ -# # Copyright (c) 1991-1993 The Regents of the University of California. # Copyright (c) 1994 Sun Microsystems, Inc. # @@ -13,7 +11,7 @@ proc parray {a {pattern *}} { upvar 1 $a array if {![array exists array]} { - error "\"$a\" isn't an array" + return -code error "\"$a\" isn't an array" } set maxl 0 set names [lsort [array names array $pattern]] |