Skip to content
Snippets Groups Projects
Unverified Commit fd6e2f11 authored by Alexander Solovyov's avatar Alexander Solovyov Committed by GitHub
Browse files

[serdes] api: better error when archive looks weird (#47721)

parent fc737436
No related branches found
No related tags found
No related merge requests found
......@@ -128,9 +128,10 @@
(let [cnt (u.compress/untgz file dst)
path (find-serialization-dir dst)]
(when-not path
(throw (ex-info "No source dir detected" {:dst (.getPath dst)
:count cnt
:files (.listFiles dst)})))
(throw (ex-info "No source dir detected. Please make sure the serialization files are in the top level dir."
{:dst (.getPath dst)
:count cnt
:files (.listFiles dst)})))
(log/infof "In total %s entries unpacked, detected source dir: %s" cnt (.getName path))
(serdes/with-cache
(-> (v2.ingest/ingest-yaml (.getPath path))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment