From dd01639f57812955b1e8aec56c0a94314d17a39d Mon Sep 17 00:00:00 2001 From: Cristian Betivu Date: Wed, 16 Aug 2023 20:57:02 +0300 Subject: [PATCH] Improve error message --- pkg/commands/git_commands/repo_paths.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/commands/git_commands/repo_paths.go b/pkg/commands/git_commands/repo_paths.go index 1fdc016d8..912202ca2 100644 --- a/pkg/commands/git_commands/repo_paths.go +++ b/pkg/commands/git_commands/repo_paths.go @@ -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