aboutsummaryrefslogtreecommitdiff
path: root/pkg/ext/router.go
diff options
context:
space:
mode:
authorGabriel A. Giovanini <mail@gabrielgio.me>2024-06-23 17:47:50 +0200
committerGabriel A. Giovanini <mail@gabrielgio.me>2024-06-23 17:51:05 +0200
commit9e210f61a6259c37cc7938cf353527cf072b3eda (patch)
tree5f2855377262b2e915ebf801502c835d6bcec75b /pkg/ext/router.go
parentba84c0d82066739adbca468846a2688e02432b6f (diff)
downloadcerrado-9e210f61a6259c37cc7938cf353527cf072b3eda.tar.gz
cerrado-9e210f61a6259c37cc7938cf353527cf072b3eda.tar.bz2
cerrado-9e210f61a6259c37cc7938cf353527cf072b3eda.zip
ref: User correct err naming
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)