Skip to content

Commit bc32b85

Browse files
committed
Improve error message when clone fails to include url
1 parent 867eb68 commit bc32b85

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

CHANGELOG.md

+2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
Changelog
22
===========
33

4+
* next
5+
* Improve error message when clone fails to include url
46
* 2.5.197 on May 31, 2023
57
* TDEPS-248 - Make `tags` return known tags when offline
68
* 2.5.190 on Feb 12, 2023

src/main/clojure/clojure/tools/gitlibs/impl.clj

+1-1
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@
126126
(let [git-path (.getCanonicalPath git-dir)
127127
{:keys [exit err] :as ret} (run-git "clone" "--quiet" "--mirror" url git-path)]
128128
(when-not (zero? exit)
129-
(throw (ex-info (format "Unable to clone %s%n%s" git-path err) ret)))
129+
(throw (ex-info (format "Unable to clone %s to %s:%n%s" url git-path err) ret)))
130130
git-dir))
131131

132132
(defn ensure-git-dir

0 commit comments

Comments
 (0)