Skip to content

Find, verify, and analyze leaked credentials

remove profililing. (#567)

ahrav2051fe14ff32
diff --git a/pkg/sources/gitlab/gitlab.go b/pkg/sources/gitlab/gitlab.go
index 1dec3a0ec..c306bc407 100644
--- a/pkg/sources/gitlab/gitlab.go
+++ b/pkg/sources/gitlab/gitlab.go
@@ -163,7 +163,8 @@ func (s *Source) getAllProjects(apiClient *gitlab.Client) ([]*gitlab.Project, er
user, _, err := apiClient.Users.CurrentUser()
if err != nil {
- return nil, errors.Errorf("unable to authenticate using: %s", s.authMethod)
+ msg := fmt.Sprintf("unable to authenticate using: %s", s.authMethod)
+ return nil, errors.WrapPrefix(err, msg, 0)
}
projects := map[int]*gitlab.Project{}