Skip to content

Commit

Permalink
Merge pull request #170 from sogaiu/netrepl-coerce-to-env-fail-feedback
Browse files Browse the repository at this point in the history
Report when coerce-to-env fails in netrepl
  • Loading branch information
bakpakin authored Feb 15, 2024
2 parents 04e39a8 + b5d181a commit c66a18f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion spork/netrepl.janet
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,11 @@
(set name (string name (gensym))))
(put name-set name true)
(eprint "client " name " connected")
(def e (coerce-to-env env name stream))
(def e
(try (coerce-to-env env name stream)
([err fib]
(eprint err)
(debug/stacktrace fib "coerce-to-env failed" ""))))
(def p (parser/new))
# Print welcome message
(when (and welcome-msg auto-flush)
Expand Down

0 comments on commit c66a18f

Please sign in to comment.