Skip to content
This repository has been archived by the owner on Oct 21, 2022. It is now read-only.

don't show the stacktrace on reader error #78

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions src/lt/plugins/clojure.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -390,8 +390,9 @@
loc {:line (dec (:end-line meta)) :ch (:end-column meta 0)
:start-line (dec (:line meta 1))}]
(notifos/set-msg! (:result res) {:class "error"})
(object/raise obj :editor.exception (:stack res) loc))
))
(if (:ex res)
(object/raise obj :editor.exception (:stack res) loc)
(object/raise obj :editor.exception (:result res) loc)))))

(behavior ::cljs-exception
:triggers #{:editor.eval.cljs.exception}
Expand Down