From d4c1e2fc363d3dc6cc698b3b1c732f0b5b134e4d Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Tue, 22 Mar 2022 11:22:20 +0100 Subject: [PATCH] :paperclip: Minor cosmetic fixes --- exporter/src/app/browser.cljs | 1 - exporter/src/app/handlers/resources.cljs | 5 +++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/exporter/src/app/browser.cljs b/exporter/src/app/browser.cljs index 1a37e9f0c2..3f3f3e960c 100644 --- a/exporter/src/app/browser.cljs +++ b/exporter/src/app/browser.cljs @@ -167,5 +167,4 @@ (-> (p/do! (.acquire ^js pool)) (p/then (partial on-acquire pool)) (p/catch (fn [cause] - (js/console.log "KKK" cause) (p/rejected cause))))))) diff --git a/exporter/src/app/handlers/resources.cljs b/exporter/src/app/handlers/resources.cljs index f9e3716fa4..e934fdcebf 100644 --- a/exporter/src/app/handlers/resources.cljs +++ b/exporter/src/app/handlers/resources.cljs @@ -56,9 +56,10 @@ (.on zip "entry" (fn [data] (let [name (unchecked-get data "name") num (swap! progress inc)] + ;; Sample code used for testing failing exports #_(when (= 2 num) - (.abort ^js zip) - (reject (js/Error. "unable to create zip file"))) + (.abort ^js zip) + (reject (js/Error. "unable to create zip file"))) (on-progress {:total (count items) :done num}))))