Skip to content

Commit

Permalink
Modify the length validation error message
Browse files Browse the repository at this point in the history
  • Loading branch information
lijamie98 committed Jun 14, 2023
1 parent f6a39e1 commit b23c02b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ void validateConfig(Errors errors) {
"homeDomain",
"sep10-home-domain-invalid",
format(
"The sep10.home_domain (%s) does not have valid format. Please make sure it is a valid domain name. Error=%s",
"The sep10.home_domain (%s) is longer than the maximum length (64) of a domain. Error=%s",
homeDomain, iaex));
}

Expand All @@ -138,7 +138,7 @@ void validateConfig(Errors errors) {
"webAuthDomain",
"sep10-web-auth-domain-invalid",
format(
"The sep10.web_auth_domain (%s) does not have valid format. Please make sure it is a valid domain name. Error=%s",
"The sep10.web_auth_home_domain (%s) is longer than the maximum length (64) of a domain. Error=%s",
webAuthDomain, iaex));
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ class Sep10ConfigTest {
"stellar .org",
"abc",
"299.0.0.1",
"0123456789012345678901234567890123456789012345678912.stellar.org",
"this-is-longer-than-64-bytes-which-is-the-maximum-length-for-a-web-auth-domain.stellar.org"
]
)
Expand Down

0 comments on commit b23c02b

Please sign in to comment.