aboutsummaryrefslogtreecommitdiff
path: root/pkg/ext/router.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/ext/router.go')
-rw-r--r--pkg/ext/router.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/ext/router.go b/pkg/ext/router.go
index 5d22814..96da1c9 100644
--- a/pkg/ext/router.go
+++ b/pkg/ext/router.go
@@ -34,7 +34,7 @@ func (r *Router) AddMiddleware(middleware Middleware) {
func wrapError(next ErrorRequestHandler) http.HandlerFunc {
return func(w http.ResponseWriter, r *http.Request) {
if err := next(w, r); err != nil {
- if errors.Is(err, service.RepositoryNotFoundErr) {
+ if errors.Is(err, service.ErrRepositoryNotFound) {
NotFound(w)
} else {
InternalServerError(w, err)