From db5700a7178236e3741902a8d2dd25b696b525a4 Mon Sep 17 00:00:00 2001 From: Brian Butz Date: Fri, 29 Dec 2023 23:13:31 +0000 Subject: [PATCH] Show run phase in continue multi-method default error throwing --- src/clj/game/core/runs.clj | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/clj/game/core/runs.clj b/src/clj/game/core/runs.clj index 0dfdf2e87c..4226d1a1bc 100644 --- a/src/clj/game/core/runs.clj +++ b/src/clj/game/core/runs.clj @@ -475,10 +475,11 @@ 2500))))) (defmethod continue :default - [_ _ _] + [state _ _] (.println *err* (with-out-str (print-stack-trace - (Exception. "Continue clicked at the wrong time") + (Exception. + (str "Continue clicked at the wrong time, run phase: " (:phase (:run @state)))) 2500)))) (defn redirect-run