SqlTermsOfService migrates to plain errors (#14675)

* Advances migragint TermsOfService

* Advances...

* Replaced message key

* Replaced message key

* Replaced message key

* Replaced message key

* Refactor name of errors

* Fix mixed type of error

* Fix-imports

* i18n-extract

* Rollback changes

* Rollback changes

* Rollback changes

Co-authored-by: mattermod <mattermod@users.noreply.github.com>
This commit is contained in:
Rodrigo Villablanca
2020-06-02 13:17:52 -04:00
committed by GitHub
parent 85a69d6112
commit 52cf817c8e
11 changed files with 104 additions and 71 deletions

View File

@@ -4285,7 +4285,7 @@ func TestRegisterTermsOfServiceAction(t *testing.T) {
defer th.TearDown()
success, resp := th.Client.RegisterTermsOfServiceAction(th.BasicUser.Id, "st_1", true)
CheckErrorMessage(t, resp, "store.sql_terms_of_service_store.get.no_rows.app_error")
CheckErrorMessage(t, resp, "app.terms_of_service.get.no_rows.app_error")
assert.Nil(t, success)
termsOfService, err := th.App.CreateTermsOfService("terms of service", th.BasicUser.Id)