From c065fffb8cfc88175e70bed7f795c5687ffbaa6f Mon Sep 17 00:00:00 2001 From: Niklas Johansson Date: Sat, 4 Jan 2025 11:28:26 +0100 Subject: [PATCH] fix: print dest directory if it fails to clone Help print more useful information when troubleshooting a broken git clone. --- lua/elixir/elixirls/download.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/elixir/elixirls/download.lua b/lua/elixir/elixirls/download.lua index 40e83e4a..71753e6b 100644 --- a/lua/elixir/elixirls/download.lua +++ b/lua/elixir/elixirls/download.lua @@ -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 {