Skip to content

Commit

Permalink
Improve error message when clone fails to include url
Browse files Browse the repository at this point in the history
  • Loading branch information
puredanger committed Dec 5, 2024
1 parent 867eb68 commit bc32b85
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/main/clojure/clojure/tools/gitlibs/impl.clj
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bc32b85

Please sign in to comment.