Modify store creation not to fail on template initialization failure (#1722)

This commit is contained in:
Miguel de la Cruz 2021-11-03 19:10:32 +01:00 committed by GitHub
parent cee4b72261
commit 751f632c36
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -44,11 +44,8 @@ func New(dbType, connectionString, tablePrefix string, logger *mlog.Logger, db *
return nil, err
}
err = store.InitializeTemplates()
if err != nil {
if err := store.InitializeTemplates(); err != nil {
logger.Error(`InitializeTemplates failed`, mlog.Err(err))
return nil, err
}
return store, nil