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 package di
import ( import (
"errors"
"net/http" "net/http"
"strings" "strings"
@ -75,7 +76,7 @@ func newHandlerFactory(
} }
err := container.Invoke(enableReporters) err := container.Invoke(enableReporters)
if err != nil { if err != nil && !errors.Is(err, di.ErrTypeNotExists) {
return nil, err return nil, err
} }