In wrong-number-of-arguments errors where the minimum number of
authorTaylor R. Campbell <net/mumble/campbell>
Fri, 19 Jan 2007 05:03:42 +0000 (05:03 +0000)
committerTaylor R. Campbell <net/mumble/campbell>
Fri, 19 Jan 2007 05:03:42 +0000 (05:03 +0000)
arguments is equal to the maximum number of arguments, write that
number, not the confusing arity object, in the condition report.

v7/src/runtime/error.scm

index 61fc72ea3d159be203d315bd9aab589f104f029b..291dedd1351d912dee39a39525fab0977a10e748 100644 (file)
@@ -1,6 +1,6 @@
 #| -*-Scheme-*-
 
-$Id: error.scm,v 14.72 2007/01/05 21:19:28 cph Exp $
+$Id: error.scm,v 14.73 2007/01/19 05:03:42 riastradh Exp $
 
 Copyright (C) 1986, 1987, 1988, 1989, 1990, 1991, 1992, 1993, 1994,
     1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
@@ -890,8 +890,8 @@ USA.
                      (arity-max (procedure-arity-max arity)))
                  (cond ((eqv? arity-min arity-max)
                         (write-string "exactly " port)
-                        (write arity port)
-                        (pluralize-argument arity))
+                        (write arity-min port)
+                        (pluralize-argument arity-min))
                        ((not arity-max)
                         (write-string "at least " port)
                         (write (car arity) port)