Skip to content

Find, verify, and analyze leaked credentials

Fix error message (#933)

Thiago Lages de Alencar9757c339d994
diff --git a/pkg/engine/git.go b/pkg/engine/git.go
index 1100a56cc..aebba9b3e 100644
--- a/pkg/engine/git.go
+++ b/pkg/engine/git.go
@@ -25,7 +25,7 @@ func (e *Engine) ScanGit(ctx context.Context, c sources.Config) error {
repo, err := gogit.PlainOpenWithOptions(c.RepoPath, &gogit.PlainOpenOptions{DetectDotGit: true})
if err != nil {
- return fmt.Errorf("could open repo: %s: %w", c.RepoPath, err)
+ return fmt.Errorf("could not open repo: %s: %w", c.RepoPath, err)
}
if c.MaxDepth != 0 {