Commit 3148c03cb8ab0760b746a76cb20f949a3ae98b2c

Thomas de Grivel 2024-07-19T15:34:12

print error message for release

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
diff --git a/lib/kmxgit_web/controllers/repository_controller.ex b/lib/kmxgit_web/controllers/repository_controller.ex
index 3082d42..6be75ab 100644
--- a/lib/kmxgit_web/controllers/repository_controller.ex
+++ b/lib/kmxgit_web/controllers/repository_controller.ex
@@ -753,7 +753,9 @@ defmodule KmxgitWeb.RepositoryController do
           %{f | url: Routes.repository_path(conn, :show, Repository.owner_slug(repo), Repository.splat(repo) ++ ["release", "_blob", "master" | String.split(url, "/")])}
         end)
         %{git | release: release}
-      {:error, _} -> git
+      {:error, e} ->
+        IO.inspect("git_put_release: Git.files error: #{e}") 
+        git
     end
   end
   defp git_put_release(git, _, _, _) do