Handle absence of the additional reporters

This commit is contained in:
ErickSkrauch 2023-12-14 03:01:55 +01:00
parent 883a7bda3c
commit 20ba78953b
No known key found for this signature in database
GPG Key ID: 669339FCBB30EE0E

View File

@ -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
}