[MM-40712] config: Bugfix on path resolution; fail if given config does not exist (#19360)
* config: bugfix on path resolution; fail if given config does not exist * reflect review comments Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
c554bbd977
Коммит
e03384c4d1
@@ -210,7 +210,7 @@ func NewServer(options ...Option) (*Server, error) {
|
||||
//
|
||||
// Step 1: Config.
|
||||
if s.configStore == nil {
|
||||
innerStore, err := config.NewFileStore("config.json")
|
||||
innerStore, err := config.NewFileStore("config.json", true)
|
||||
if err != nil {
|
||||
return nil, errors.Wrap(err, "failed to load config")
|
||||
}
|
||||
|
||||
Ссылка в новой задаче
Block a user