On Mar 28, 2009, at 10:31 PM, Glen Stampoultzis wrote:

It wasn't really this specific problem that I wanted to point out but more to trigger a rethink of how errors are reported back to the user.

I understand, but without specifying which Clojure you're using and giving an example of how it happened, it's hard to compare our results.

Here's an example that gives an error somewhat similar to the one I posted:

(defn testing [a b] (print a b))
(testing)

java.lang.NoSuchMethodError: java.lang.Class.getSimpleName()Ljava/ lang/String; (testing.clj:0)
[ and lots more stack trace ]



Here's what I get with clojure_20090320 downloaded from:

        http://code.google.com/p/clojure/downloads/list

% java -cp clojure.jar clojure.main
Clojure
user=> (defn testing [a b] (print a b))
#'user/testing
user=> (testing)
java.lang.IllegalArgumentException: Wrong number of args passed to: user$testing (NO_SOURCE_FILE:0)
user=>

That's quite different from your result and I think more in line with what you're requesting. Are you able to reproduce this result using the Clojure version I referenced?

--Steve

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to