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