Skip to content

Commit

Permalink
improved error message for missing key file
Browse files Browse the repository at this point in the history
  • Loading branch information
Yogthos committed Nov 22, 2024
1 parent 7043800 commit 299f117
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"kit-jdk-http" "1.0.0"
"kit-jetty" "1.0.0"
"kit-xtdb" "1.0.4"
"kit-generator" "0.2.3"
"kit-generator" "0.2.4"
"kit-hato" "1.0.4"
"kit-nrepl" "1.0.5"
"kit-metrics" "1.0.3"
Expand Down
3 changes: 3 additions & 0 deletions libs/kit-generator/src/kit/generator/git.clj
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@
:bare? false
:clone-all? false)))
(when callback (callback path))))
(catch org.eclipse.jgit.api.errors.TransportException e
(println (.getMessage e)
"\nif you do not have a key file, set the :name key in kit.git-config.edn to an empty string"))
(catch Exception e
(println "failed to clone module:" url "\ncause:" (.getMessage e))
(.printStackTrace e))))

0 comments on commit 299f117

Please sign in to comment.