Skip to content

Commit f3b7f9b

Browse files
committed
if we cannot establish a REPL due to an error during REPL initialization
throw ex-info with the cause
1 parent f742cd9 commit f3b7f9b

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/main/clojure/cljs/repl.cljc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1211,6 +1211,8 @@
12111211
(prompt)
12121212
(flush))
12131213
(recur))))))))
1214+
(catch Throwable t
1215+
(throw (ex-info "Unexpected error during REPL initialization" {} t)))
12141216
(finally
12151217
(reset! done? true)
12161218
(-tear-down repl-env)))))))

0 commit comments

Comments
 (0)