einterfaces: simply saml.ConfigureSP error handling (#10306)

Этот коммит содержится в:
Jesse Hallam
2019-02-21 13:51:25 -04:00
коммит произвёл Miguel Alatzar
родитель 659af08ee4
Коммит 7150b9aada
3 изменённых файлов: 5 добавлений и 6 удалений

Просмотреть файл

@@ -7,6 +7,7 @@ import (
"github.com/mattermost/mattermost-server/einterfaces"
ejobs "github.com/mattermost/mattermost-server/einterfaces/jobs"
tjobs "github.com/mattermost/mattermost-server/jobs/interfaces"
"github.com/mattermost/mattermost-server/mlog"
"github.com/mattermost/mattermost-server/model"
)
@@ -128,7 +129,9 @@ func (s *Server) initEnterprise() {
if samlInterface != nil {
s.Saml = samlInterface(s.FakeApp())
s.AddConfigListener(func(_, cfg *model.Config) {
s.Saml.ConfigureSP()
if err := s.Saml.ConfigureSP(); err != nil {
mlog.Error("An error occurred while configuring SAML Service Provider", mlog.Err(err))
}
})
}
if dataRetentionInterface != nil {