diff --git a/CHANGELOG.md b/CHANGELOG.md index e6c0937..abf12d5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,8 @@ Changelog =========== +* next + * Improve error message when clone fails to include url * 2.5.197 on May 31, 2023 * TDEPS-248 - Make `tags` return known tags when offline * 2.5.190 on Feb 12, 2023 diff --git a/src/main/clojure/clojure/tools/gitlibs/impl.clj b/src/main/clojure/clojure/tools/gitlibs/impl.clj index 7b51677..62e6ef9 100644 --- a/src/main/clojure/clojure/tools/gitlibs/impl.clj +++ b/src/main/clojure/clojure/tools/gitlibs/impl.clj @@ -126,7 +126,7 @@ (let [git-path (.getCanonicalPath git-dir) {:keys [exit err] :as ret} (run-git "clone" "--quiet" "--mirror" url git-path)] (when-not (zero? exit) - (throw (ex-info (format "Unable to clone %s%n%s" git-path err) ret))) + (throw (ex-info (format "Unable to clone %s to %s:%n%s" url git-path err) ret))) git-dir)) (defn ensure-git-dir