Skip to content

Commit

Permalink
fix: print dest directory if it fails to clone
Browse files Browse the repository at this point in the history
Help print more useful information when troubleshooting a broken git clone.
  • Loading branch information
Raphexion authored and mhanberg committed Jan 4, 2025
1 parent 803fa69 commit c065fff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/elixir/elixirls/download.lua
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ function M.clone(dir, opts)

clone:sync(60000)

assert(clone.code == 0, string.format("Failed to clone %s", opts.repo))
assert(clone.code == 0, string.format("Failed to clone %s to %s", opts.repo, dir))

if opts.ref ~= "HEAD" then
local checkout = Job:new {
Expand Down

0 comments on commit c065fff

Please sign in to comment.