enhance(cli): export-edn prints unexpected errors

especially when an invalid export-type is given
This commit is contained in:
Gabriel Horner
2025-11-18 09:51:20 -05:00
parent 8c3e4f25c7
commit 5489e7572f
5 changed files with 13 additions and 10 deletions

View File

@@ -283,7 +283,7 @@
:on-click #(do (reset! *export-block-type :edn)
(p/let [result (<export-edn-helper top-level-uuids export-type)
pull-data (with-out-str (pprint/pprint result))]
(when-not (= :export-edn-error result)
(when-not (:export-edn-error result)
(reset! *content pull-data))))))])
(if (= :png tp)
[:div.flex.items-center.justify-center.relative