Преглед изворни кода

enhance: print clojure data to make it easy to digest the error

Tienson Qin пре 3 година
родитељ
комит
03d0f6191b
1 измењених фајлова са 2 додато и 1 уклоњено
  1. 2 1
      src/main/frontend/handler/plugin_config.cljs

+ 2 - 1
src/main/frontend/handler/plugin_config.cljs

@@ -84,7 +84,8 @@ returns map of plugins to install and uninstall"
             (do
               (notification/show! "Invalid plugins.edn provided. See javascript console for specific errors"
                                   :error)
-              (log/error :plugin-edn-errors errors))
+              (log/error :plugin-edn-errors errors)
+              (println "Invalid plugins.edn, errors: " errors))
             (let [plugins-to-change (determine-plugins-to-change
                                      (:plugin/installed-plugins @state/state)
                                      edn-plugins)]