mirror of
https://github.com/elyby/chrly.git
synced 2025-05-31 14:11:51 +05:30
Handle absence of the additional reporters
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user