Preventing bad imports

This commit is contained in:
2021-11-25 07:52:15 -08:00
parent 06ea51a168
commit b0afa05c2e
2 changed files with 19 additions and 10 deletions

View File

@@ -133,7 +133,12 @@
{:id ::manual-import
:events #{::manual/import-completed}
:event-fn (fn [[_ {:keys [imported errors] :as result}]]
[::status/info ::manual-import (str "Successfully imported " imported " transactions")])}]}))
[::status/info ::manual-import (str "Successfully imported " imported " transactions"
(when (seq errors)
(str
", " (count errors) " errors. "
"Example: '" (str (:info (first (:errors (first errors))))) "'")))])}]}))
(defn content []