From a45da56cd292058549e4e84def4ef5dad5818fc0 Mon Sep 17 00:00:00 2001 From: Tienson Qin Date: Mon, 6 Jan 2025 21:25:23 +0800 Subject: [PATCH] fix: pprint/pprint not always work for validate errors --- src/main/frontend/worker/db/validate.cljs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/main/frontend/worker/db/validate.cljs b/src/main/frontend/worker/db/validate.cljs index f6ec5370f2..78906c8d1f 100644 --- a/src/main/frontend/worker/db/validate.cljs +++ b/src/main/frontend/worker/db/validate.cljs @@ -1,7 +1,6 @@ (ns frontend.worker.db.validate "Validate db" - (:require [cljs.pprint :as pprint] - [frontend.worker.util :as worker-util] + (:require [frontend.worker.util :as worker-util] [logseq.db.frontend.validate :as db-validate])) (defn validate-db @@ -12,11 +11,11 @@ (worker-util/post-message :log [:db-invalid :error {:msg (str "Validation detected " (count errors) " invalid block(s):") :counts (assoc (db-validate/graph-counts db entities) :datoms datom-count)}]) - (pprint/pprint errors) + (prn errors) (worker-util/post-message :notification [(str "Validation detected " (count errors) " invalid block(s). These blocks may be buggy when you interact with them. See the javascript console for more.") :warning false])) (worker-util/post-message :notification [(str "Your graph is valid! " (assoc (db-validate/graph-counts db entities) :datoms datom-count)) - :success false])))) \ No newline at end of file + :success false]))))