Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Need to make *err* a PrintWriter.

  • Loading branch information...
commit e2d09b01b654365800e4ef30a18efb2e3e24529f 1 parent 53726ef
@technomancy technomancy authored
Showing with 4 additions and 3 deletions.
  1. +4 −3 src/leiningen/repl.clj
View
7 src/leiningen/repl.clj
@@ -55,12 +55,13 @@
(let [server# (ServerSocket. ~port 0 (InetAddress/getByName ~host))
acc# (fn [s#]
(let [ins# (.getInputStream s#)
- outs# (.getOutputStream s#)]
+ outs# (.getOutputStream s#)
+ out-writer# (OutputStreamWriter. outs#)]
(doto (Thread.
#(binding [*in* (-> ins# InputStreamReader.
LineNumberingPushbackReader.)
- *out* (OutputStreamWriter. outs#)
- *err* (OutputStreamWriter. outs#)
+ *out* out-writer#
+ *err* (PrintWriter. out-writer#)
*warn-on-reflection*
~(:warn-on-reflection project)]
(clojure.main/repl
Please sign in to comment.
Something went wrong with that request. Please try again.