better_panics #15

Merged
scott merged 5 commits from better_panics into main 2023-12-18 05:26:58 +00:00
Showing only changes of commit b12b49c197 - Show all commits

View File

@ -990,7 +990,7 @@
(let [base-ctx (volatile! {::parent (volatile! ctx)})] (let [base-ctx (volatile! {::parent (volatile! ctx)})]
(try (try
(interpret-ast parsed base-ctx) (interpret-ast parsed base-ctx)
(catch Throwable e (catch #?(:clj Throwable :cljs js/Object) e
{::data/error true {::data/error true
:token (get-in (ex-data e) [:ast :token]) :token (get-in (ex-data e) [:ast :token])
:line (get-in (ex-data e) [:ast :token :line]) :line (get-in (ex-data e) [:ast :token :line])