Fixed the explosion of REPL on bad input.
This commit is contained in:
parent
a21362699d
commit
8ec9b4a9ba
1 changed files with 2 additions and 1 deletions
|
@ -58,7 +58,8 @@
|
|||
(defn- repl-client [reader writer]
|
||||
(copy-out reader)
|
||||
(let [eof (Object.)
|
||||
input (read *in* false eof)]
|
||||
input (try (read *in* false eof)
|
||||
(catch Exception e nil))]
|
||||
(when-not (= eof input)
|
||||
(.write writer (str (pr-str input) "\n"))
|
||||
(.flush writer)
|
||||
|
|
Loading…
Reference in a new issue