From 6d9efaeb38a1e76c5ee56620a0bda83ffefc8513 Mon Sep 17 00:00:00 2001 From: Zaq? Wiedmann Date: Wed, 11 Dec 2019 14:07:23 -0800 Subject: [PATCH] improve project not found error to clarify it may be a permission issue --- cmd/ci_run_test.go | 2 +- internal/gitlab/gitlab.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/ci_run_test.go b/cmd/ci_run_test.go index 22ed6e6f..6c3782e3 100644 --- a/cmd/ci_run_test.go +++ b/cmd/ci_run_test.go @@ -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", }, } diff --git a/internal/gitlab/gitlab.go b/internal/gitlab/gitlab.go index 009f9a5a..2d31a6af 100644 --- a/internal/gitlab/gitlab.go +++ b/internal/gitlab/gitlab.go @@ -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 (