Skip to content

Commit

Permalink
gitlab: Cleanup error codes
Browse files Browse the repository at this point in the history
Some general cleanup of the GitLab error codes.

Signed-off-by: Prarit Bhargava <prarit@redhat.com>
  • Loading branch information
prarit committed May 10, 2021
1 parent 2918d3d commit 2df755d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions internal/gitlab/gitlab.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,14 @@ import (
)

var (
// ErrProjectNotFound is returned when a GitLab project cannot be found.
ErrProjectNotFound = errors.New("gitlab project not found, verify you have access to the requested resource")
// ErrGroupNotFound is returned when a GitLab group cannot be found.
ErrGroupNotFound = errors.New("gitlab group not found")
// ErrStatusForbidden is returned when attempting to access a GitLab project with insufficient permissions
ErrStatusForbidden = errors.New("Insufficient permissions for gitlab project")
ErrGroupNotFound = errors.New("GitLab group not found")
// ErrNotModified is returned when adding an already existing item to a Todo list
ErrNotModified = errors.New("Not Modified")
// ErrProjectNotFound is returned when a GitLab project cannot be found.
ErrProjectNotFound = errors.New("GitLab project not found, verify you have access to the requested resource")
// ErrStatusForbidden is returned when attempting to access a GitLab project with insufficient permissions
ErrStatusForbidden = errors.New("Insufficient permissions for GitLab project")
)

var (
Expand Down

0 comments on commit 2df755d

Please sign in to comment.