If you exercise the bug in my previous post about resultset-seq, the
repl will not print a stack trace, it will only print the name of the
exception and the message. The following patch modifies the repl to
print the stack trace.
Allen
Index: src/jvm/clojure/lang/Repl.java
===================================================================
--- src/jvm/clojure/lang/Repl.java (revision 1060)
+++ src/jvm/clojure/lang/Repl.java (working copy)
@@ -97,7 +97,10 @@
Throwable c = e;
while(c.getCause() != null)
c = c.getCause();
- ((PrintWriter) RT.ERR.get()).println(e
instanceof
Compiler.CompilerException ? e : c);
+ if(e instanceof
Compiler.CompilerException)
+ e.printStackTrace((PrintWriter)
RT.ERR.get());
+ else
+ c.printStackTrace((PrintWriter)
RT.ERR.get());
stare.set(e);
}
}
--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
-~----------~----~----~----~------~----~------~--~---