Modify store creation not to fail on template initialization failure (#1722)
This commit is contained in:
parent
cee4b72261
commit
751f632c36
1 changed files with 1 additions and 4 deletions
|
@ -44,11 +44,8 @@ func New(dbType, connectionString, tablePrefix string, logger *mlog.Logger, db *
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
err = store.InitializeTemplates()
|
if err := store.InitializeTemplates(); err != nil {
|
||||||
if err != nil {
|
|
||||||
logger.Error(`InitializeTemplates failed`, mlog.Err(err))
|
logger.Error(`InitializeTemplates failed`, mlog.Err(err))
|
||||||
|
|
||||||
return nil, err
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return store, nil
|
return store, nil
|
||||||
|
|
Loading…
Reference in a new issue