Skip to content

Commit b08647f

Browse files
authored
fix: print dest directory if it fails to clone (#233)
Help print more useful information when troubleshooting a broken git clone.
1 parent 803fa69 commit b08647f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/elixir/elixirls/download.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ function M.clone(dir, opts)
2424

2525
clone:sync(60000)
2626

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

2929
if opts.ref ~= "HEAD" then
3030
local checkout = Job:new {

0 commit comments

Comments
 (0)