replace fmt.sprintf (#12776)
* replace fmt.sprintf * update error message * Update app/ldap.go Co-Authored-By: Jesse Hallam <jesse.hallam@gmail.com> * Update app/ldap.go Co-Authored-By: Jesse Hallam <jesse.hallam@gmail.com>
Этот коммит содержится в:
коммит произвёл
Jesse Hallam
родитель
6ce97648f4
Коммит
7c230d542a
@@ -52,7 +52,7 @@ func (a *App) GetLdapGroup(ldapGroupID string) (*model.Group, *model.AppError) {
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
ae := model.NewAppError("GetLdapGroup", "ent.ldap.app_error", nil, "", http.StatusNotImplemented)
|
ae := model.NewAppError("GetLdapGroup", "ent.ldap.app_error", nil, "", http.StatusNotImplemented)
|
||||||
mlog.Error(fmt.Sprintf("%v", ae.Error()))
|
mlog.Error("Unable to use ldap", mlog.String("ldap_group_id", ldapGroupID), mlog.Err(ae))
|
||||||
return nil, ae
|
return nil, ae
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -73,7 +73,7 @@ func (a *App) GetAllLdapGroupsPage(page int, perPage int, opts model.LdapGroupSe
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
ae := model.NewAppError("GetAllLdapGroupsPage", "ent.ldap.app_error", nil, "", http.StatusNotImplemented)
|
ae := model.NewAppError("GetAllLdapGroupsPage", "ent.ldap.app_error", nil, "", http.StatusNotImplemented)
|
||||||
mlog.Error(fmt.Sprintf("%v", ae.Error()))
|
mlog.Error("Unable to use ldap", mlog.Err(ae))
|
||||||
return nil, 0, ae
|
return nil, 0, ae
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user