MM-25544:Update error message for length violations (#14853)

* update error message for length violations

* fix unit test

Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
Этот коммит содержится в:
Scott Bishel
2020-06-23 10:47:48 -06:00
коммит произвёл GitHub
родитель 574b48835d
Коммит 53ef4d120b
3 изменённых файлов: 6 добавлений и 2 удалений

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

@@ -148,7 +148,7 @@ func testGroupStoreCreate(t *testing.T, ss store.Store) {
require.Nil(t, g5.IsValidForCreate())
g5.Name = model.NewString(*g5.Name + "x")
require.Equal(t, g5.IsValidForCreate().Id, "model.group.name.app_error")
require.Equal(t, g5.IsValidForCreate().Id, "model.group.name.invalid_length.app_error")
g5.Name = model.NewString(model.NewId())
require.Nil(t, g5.IsValidForCreate())