Omitting java exception class from CompilerException message

63 views
Skip to first unread message

John D. Hume

unread,
May 23, 2015, 4:29:39 PM5/23/15
to cloju...@googlegroups.com
I just submitted http://dev.clojure.org/jira/browse/CLJ-1737. It's a tiny change.

The 10 second version:

Today, a CompilerException message looks like this:
java.lang.RuntimeException: EOF while reading, starting at line 3, compiling:(/path/your_file.clj:3:1)

I think it would be better if it looked like this:
EOF while reading, starting at line 3, compiling:(/path/your_file.clj:3:1)

Comments, questions, and votes are welcome. :)

Elena Machkasova

unread,
May 28, 2015, 6:37:21 PM5/28/15
to cloju...@googlegroups.com
Their class will still be clojure.lang.Compiler$CompilerException, right?

Elena

John D. Hume

unread,
May 28, 2015, 11:12:08 PM5/28/15
to cloju...@googlegroups.com

Yes, the message string of the CompilerException just won't include the class of the cause.

--
You received this message because you are subscribed to the Google Groups "Clojure Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to clojure-dev...@googlegroups.com.
To post to this group, send email to cloju...@googlegroups.com.
Visit this group at http://groups.google.com/group/clojure-dev.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages