Fork me on GitHub
#nrepl
<
2022-10-06
>
Mikko Harju12:10:19

Hi! I embedded a repl with TTY-transport to my production app that I can access via VPN – if I typo something (for instance forget a closing paren) the connection cuts off and I must redo everything – could not find with a simple search how to handle that situation? 🙂

hiredman17:10:01

what do you mean the connection cuts off?

Mikko Harju08:10:12

user=> ())

<disconnected>
On the server it crashes with:
2022-10-07T07:57:30.247 app[57874099] fra [info] ERROR:

2022-10-07T07:57:30.247 app[57874099] fra [info] java.lang.RuntimeException: EOF while reading

2022-10-07T07:57:30.247 app[57874099] fra [info] at clojure.lang.Util.runtimeException(Util.java:221)
....
2022-10-07T08:01:53.561 app[57874099] fra [info] ERROR:

2022-10-07T08:01:53.561 app[57874099] fra [info] java.lang.RuntimeException: Unmatched delimiter: )

2022-10-07T08:01:53.561 app[57874099] fra [info] at clojure.lang.Util.runtimeException(Util.java:221)

2022-10-07T08:01:53.561 app[57874099] fra [info] at clojure.lang.LispReader$UnmatchedDelimiterReader.invoke(LispReader.java:1373)
....
`