From c6349552c1c54ea114b92ae23fc840f68f6551f4 Mon Sep 17 00:00:00 2001 From: Máximo Cuadros Date: Sat, 31 Oct 2015 01:14:03 +0100 Subject: internal -> core --- clients/http/common.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'clients/http/common.go') diff --git a/clients/http/common.go b/clients/http/common.go index 2a2808c..15338a8 100644 --- a/clients/http/common.go +++ b/clients/http/common.go @@ -5,6 +5,7 @@ import ( "net/http" "gopkg.in/src-d/go-git.v2/clients/common" + "gopkg.in/src-d/go-git.v2/core" ) type HTTPError struct { @@ -18,10 +19,10 @@ func NewHTTPError(r *http.Response) error { err := &HTTPError{r} if r.StatusCode == 404 || r.StatusCode == 401 { - return common.NewPermanentError(common.NotFoundErr) + return core.NewPermanentError(common.NotFoundErr) } - return common.NewUnexpectedError(err) + return core.NewUnexpectedError(err) } func (e *HTTPError) StatusCode() int { -- cgit