We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 934e829 + 1e57e24 commit 54f32b7Copy full SHA for 54f32b7
1 file changed
internal/utils/repository_dir.go
@@ -19,10 +19,8 @@ func GetRepositoryDir() (string, error) {
19
if err != nil {
20
if _, ok := err.(*exec.ExitError); ok {
21
if regexp.MustCompile("not a git repository").Match(outputBytes) {
22
- fmt.Fprintf(os.Stderr, "The current directory is not within a Git repository.\n")
23
- fmt.Fprintf(os.Stderr, "Please run this command from within your CodeCrafters Git repository.\n")
24
-
25
- return "", errors.New("used not in a repository")
+ return "", errors.New(`Error: The current directory is not within a Git repository.
+Please run this command from within your CodeCrafters Git repository.`)
26
}
27
28
0 commit comments