diff --git a/di/handlers.go b/di/handlers.go index 9e88f38..a0ed9dc 100644 --- a/di/handlers.go +++ b/di/handlers.go @@ -1,6 +1,7 @@ package di import ( + "errors" "net/http" "strings" @@ -75,7 +76,7 @@ func newHandlerFactory( } err := container.Invoke(enableReporters) - if err != nil { + if err != nil && !errors.Is(err, di.ErrTypeNotExists) { return nil, err }