Return error when persister fails to modify config

This commit is contained in:
Fabian Ruff
2021-02-16 08:45:59 +01:00
committed by GitHub
parent bcfa3a0a36
commit 9efd1fd12f

View File

@@ -374,7 +374,7 @@ func (p *persister) Persist(config map[string]string) error {
authInfo, ok := newConfig.AuthInfos[p.user]
if ok && authInfo.AuthProvider != nil {
authInfo.AuthProvider.Config = config
ModifyConfig(p.configAccess, *newConfig, false)
return ModifyConfig(p.configAccess, *newConfig, false)
}
return nil
}