On Mar 13, 11:50 pm, Raoul Duke <rao...@gmail.com> wrote: > i'm up to date with the clojure jar. the error messages i get seem > awfully terse and not particularly helpful in learning what i'm doing > wrong. for example, with the code below, when i try (bs 0 (vector 1 2 > 3)) i get "java.lang.ClassCastException: > clojure.lang.LazilyPersistentVector (NO_SOURCE_FILE:0)". swapping the > order of args in the 2nd 'nth' call fixes it. is there no way to get > Clojure to help me out a little with such things?
In the REPL, *e gives you the last thrown exception. You can then call printStackTrace on it: (.printStackTrace *e) There's also clojure.contrib.stacktrace in Clojure-Contrib, and Mark's clj-backtrace (http://github.com/mmcgrana/clj-backtrace/tree/master), which give you more readable stacktraces than the standard Java method. - James --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en -~----------~----~----~----~------~----~------~--~---