Skip to content

Commit dbd232a

Browse files
committed
if we can't load the REPL ns, include the cause
1 parent 8992583 commit dbd232a

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/main/cljs/cljs/main.clj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,10 @@
2929
(throw
3030
(ex-info (str "REPL namespace " repl-ns " does not define repl-env var")
3131
{:repl-ns repl-ns})))
32-
(catch Throwable _
32+
(catch Throwable t
3333
(throw
34-
(ex-info (str "REPL namespace " repl-ns " does not exist")
35-
{:repl-ns repl-ns})))))
34+
(ex-info (str "Failed to load REPL namespace " repl-ns)
35+
{:repl-ns repl-ns} t)))))
3636
browser/repl-env))
3737

3838
(defn- normalize* [args]

0 commit comments

Comments
 (0)