Add prerequisite for this 401 errors
All threads resolved!
All threads resolved!
Compare changes
Files
2+ 19
− 7
@@ -55,6 +55,10 @@ type GitLabResponse struct {
@@ -127,14 +131,14 @@ func (gl *GitLab) Completions(prompt string) ([]deps.Dependency, error) {
return nil, fmt.Errorf("Request failed (code 401). Please verify that the current project is in a root namespace or its descendant namespaces where the root namespace has a duo pro add-on. Refer to this page for more details: https://docs.gitlab.com/ee/user/project/repository/code_suggestions/repository_xray.html#enable-repository-x-ray")
@@ -153,3 +157,11 @@ func (gl *GitLab) Completions(prompt string) ([]deps.Dependency, error) {