mirror of
https://github.com/elyby/chrly.git
synced 2024-11-30 02:32:19 +05:30
Handle absence of the additional reporters
This commit is contained in:
parent
883a7bda3c
commit
20ba78953b
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user