From f7809d5ddf229cd418094c2366755ee7e2539ca1 Mon Sep 17 00:00:00 2001 From: Scott Richmond Date: Mon, 25 Apr 2022 19:07:18 -0400 Subject: [PATCH] Improve panic message reporting --- src/ludus/prelude.clj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ludus/prelude.clj b/src/ludus/prelude.clj index bac2a46..f980f6e 100644 --- a/src/ludus/prelude.clj +++ b/src/ludus/prelude.clj @@ -36,7 +36,7 @@ (def panic! {:name "panic!" ::data/type ::data/clj - :body (fn [& args] (throw (ex-info "Ludus panicked!" {:args args})))}) + :body (fn [& args] (throw (ex-info (apply str (interpose " " args)) {})))}) (def print- {:name "print" ::data/type ::data/clj