aboutsummaryrefslogtreecommitdiffstats
path: root/clients/common/common.go
diff options
context:
space:
mode:
authorMáximo Cuadros <mcuadros@gmail.com>2016-08-25 15:10:40 +0200
committerMáximo Cuadros <mcuadros@gmail.com>2016-08-25 15:10:40 +0200
commit0f97041639b55bc4631145e2053a47a1eb8cdef0 (patch)
tree07de52218d3c0e69994c2614f7875af2635ae682 /clients/common/common.go
parent0fa6f26b0e6ca242088794027c0a32d01e1bc6f9 (diff)
downloadgo-git-0f97041639b55bc4631145e2053a47a1eb8cdef0.tar.gz
clients/http: better error handling
Diffstat (limited to 'clients/common/common.go')
-rw-r--r--clients/common/common.go7
1 files changed, 4 insertions, 3 deletions
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"