From 0f97041639b55bc4631145e2053a47a1eb8cdef0 Mon Sep 17 00:00:00 2001 From: Máximo Cuadros Date: Thu, 25 Aug 2016 15:10:40 +0200 Subject: clients/http: better error handling --- clients/common/common.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'clients/common') diff --git a/clients/common/common.go b/clients/common/common.go index d128f3f..e1140ec 100644 --- a/clients/common/common.go +++ b/clients/common/common.go @@ -16,9 +16,10 @@ import ( ) var ( - ErrNotFound = errors.New("repository not found") - ErrEmptyGitUploadPack = errors.New("empty git-upload-pack given") - ErrInvalidAuthMethod = errors.New("invalid auth method") + ErrRepositoryNotFound = errors.New("repository not found") + ErrAuthorizationRequired = errors.New("authorization required") + ErrEmptyGitUploadPack = errors.New("empty git-upload-pack given") + ErrInvalidAuthMethod = errors.New("invalid auth method") ) const GitUploadPackServiceName = "git-upload-pack" -- cgit