From dd8d58e05026df8305211e95bb8c3555114e6fd2 Mon Sep 17 00:00:00 2001 From: Eli Barzilay Date: Sun, 11 Jun 2006 20:44:26 +0000 Subject: [PATCH] show arguments on no-next-method too svn: r3333 --- collects/swindle/tiny-clos.ss | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/collects/swindle/tiny-clos.ss b/collects/swindle/tiny-clos.ss index d00926d51e..7651b777c2 100644 --- a/collects/swindle/tiny-clos.ss +++ b/collects/swindle/tiny-clos.ss @@ -1657,14 +1657,16 @@ (case (%method-qualifier method) [(:before) " in a `before' method"] [(:after) " in an `after' method"] - [else ""])) - (%generic-name generic))))) + [else ""]) + " with arguments: ~e") + (%generic-name generic) args)))) (add-method no-next-method (make-method (list (singleton #f) ) (lambda (call-next-method generic method . args) (raise* make-exn:fail:contract - "~s: no applicable next method when calling a method directly" - (%method-name method))))) + (concat "~s: no applicable next method in a direct method call" + " with arguments: ~e") + (%method-name method) args)))) (add-method no-applicable-method (make-method (list )