From ab78e061116914a2173d9f18b2cb225cfd8c6854 Mon Sep 17 00:00:00 2001 From: Martin Kavalar Date: Wed, 9 Oct 2024 09:42:14 +0200 Subject: [PATCH] Rename render errors files for better dx (only one render.cljs in the project) --- notebooks/errors/{render.cljs => render_botched.cljs} | 2 +- .../errors/{boundaries.clj => require_cljs_errors.clj} | 10 ++++------ 2 files changed, 5 insertions(+), 7 deletions(-) rename notebooks/errors/{render.cljs => render_botched.cljs} (57%) rename notebooks/errors/{boundaries.clj => require_cljs_errors.clj} (56%) diff --git a/notebooks/errors/render.cljs b/notebooks/errors/render_botched.cljs similarity index 57% rename from notebooks/errors/render.cljs rename to notebooks/errors/render_botched.cljs index c228fcc65..21eca9dc9 100644 --- a/notebooks/errors/render.cljs +++ b/notebooks/errors/render_botched.cljs @@ -1,4 +1,4 @@ -(ns errors.render) +(ns errors.render-botched) boom diff --git a/notebooks/errors/boundaries.clj b/notebooks/errors/require_cljs_errors.clj similarity index 56% rename from notebooks/errors/boundaries.clj rename to notebooks/errors/require_cljs_errors.clj index ca51e6de3..22ca2bf7d 100644 --- a/notebooks/errors/boundaries.clj +++ b/notebooks/errors/require_cljs_errors.clj @@ -1,13 +1,11 @@ -;; # 😩 Errors +;; # 💣 Render Errors -(ns boundaries +(ns require-cljs-errors (:require [nextjournal.clerk :as clerk] [nextjournal.clerk.viewer :as v])) -#_boom - -#_(clerk/with-viewer {:require-cljs true - :render-fn 'errors.render/test} 1) +(clerk/with-viewer {:require-cljs true + :render-fn 'errors.render-botched/test} 1) #_(try (/ 1 0) (catch Exception e (throw (ex-info "boom!" {:foo :bar} e))))