include provided-argument count in arity error

original commit: 56b25afdccfb4156f6dff55e2a17f2fc3b51c254
This commit is contained in:
Matthew Flatt 2019-01-15 15:26:43 -07:00
parent 03a33fb4fc
commit fee19dacb8

2
s/7.ss
View File

@ -1146,7 +1146,7 @@
[(ERROR_CALL_NONPROCEDURE) (cnt nonprocedure arg1?)
($oops #f "attempt to apply non-procedure ~s" nonprocedure)]
[(ERROR_CALL_ARGUMENT_COUNT) (cnt procedure arg1?)
($oops #f "incorrect number of arguments to ~s" procedure)]
($oops #f "incorrect number of arguments ~s to ~s" cnt procedure)]
[(ERROR_RESET) (who msg . args)
($oops who "~?. Some debugging context lost" msg args)]
[(ERROR_NONCONTINUABLE_INTERRUPT) args