From 159905403c8149e01610c7abd066751acb1639d0 Mon Sep 17 00:00:00 2001 From: "Taylor R. Campbell" Date: Fri, 19 Jan 2007 05:03:42 +0000 Subject: [PATCH] In wrong-number-of-arguments errors where the minimum number of 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 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/v7/src/runtime/error.scm b/v7/src/runtime/error.scm index 61fc72ea3..291dedd13 100644 --- a/v7/src/runtime/error.scm +++ b/v7/src/runtime/error.scm @@ -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) -- 2.25.1