1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2024-12-10 11:10:18 +02:00

Improve error message

This commit is contained in:
Cristian Betivu 2023-08-16 20:57:02 +03:00
parent 525932fbf2
commit dd01639f57

View File

@ -223,7 +223,7 @@ func getCurrentRepoGitDirPath(
// If this error causes issues, we could relax the constraint and just always
// return the path
return "", "", errors.Errorf("could not find git dir for %s: path is not under `worktrees` or `modules` directories", currentPath)
return "", "", errors.Errorf("could not find git dir for %s: path '%s' is not under `worktrees` or `modules` directories.", currentPath, worktreeGitPath)
}
// takes a path containing a symlink and returns the true path