Skip to content

Commit

Permalink
improve project not found error to clarify it may be a permission issue
Browse files Browse the repository at this point in the history
  • Loading branch information
zaquestion committed Dec 11, 2019
1 parent 2b61ea3 commit 6d9efae
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/ci_run_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ func Test_getCIRunOptions(t *testing.T) {
[]string{},
nil, // https://gitlab.com/zaquestion/test project ID
"",
"gitlab project not found",
"gitlab project not found, verify you have access to the requested resource",
},
}

Expand Down
2 changes: 1 addition & 1 deletion internal/gitlab/gitlab.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import (

var (
// ErrProjectNotFound is returned when a GitLab project cannot be found.
ErrProjectNotFound = errors.New("gitlab project not found")
ErrProjectNotFound = errors.New("gitlab project not found, verify you have access to the requested resource")
)

var (
Expand Down

0 comments on commit 6d9efae

Please sign in to comment.