Skip to content

Commit 299f117

Browse files
author
Yogthos
committed
improved error message for missing key file
1 parent 7043800 commit 299f117

File tree

2 files changed

+4
-1
lines changed
  • libs
    • deps-template/resources/io/github/kit_clj/kit
    • kit-generator/src/kit/generator

2 files changed

+4
-1
lines changed

libs/deps-template/resources/io/github/kit_clj/kit/versions.edn

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"kit-jdk-http" "1.0.0"
44
"kit-jetty" "1.0.0"
55
"kit-xtdb" "1.0.4"
6-
"kit-generator" "0.2.3"
6+
"kit-generator" "0.2.4"
77
"kit-hato" "1.0.4"
88
"kit-nrepl" "1.0.5"
99
"kit-metrics" "1.0.3"

libs/kit-generator/src/kit/generator/git.clj

+3
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@
3737
:bare? false
3838
:clone-all? false)))
3939
(when callback (callback path))))
40+
(catch org.eclipse.jgit.api.errors.TransportException e
41+
(println (.getMessage e)
42+
"\nif you do not have a key file, set the :name key in kit.git-config.edn to an empty string"))
4043
(catch Exception e
4144
(println "failed to clone module:" url "\ncause:" (.getMessage e))
4245
(.printStackTrace e))))

0 commit comments

Comments
 (0)