Skip to content

Commit 8c28a01

Browse files
fix(errors): hypens -> hyphens (#20)
1 parent 2ca715a commit 8c28a01

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

errors.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ const (
1717
fieldReqMsg = "This field is required."
1818
invalidUserMsg = "Enter a valid username. This value may contain only letters, numbers and @/./+/-/_ characters."
1919
failedLoginMsg = "Unable to log in with provided credentials."
20-
invalidAppNameMsg = "App name can only contain a-z (lowercase), 0-9 and hypens"
21-
invalidNameMsg = "Can only contain a-z (lowercase), 0-9 and hypens"
20+
invalidAppNameMsg = "App name can only contain a-z (lowercase), 0-9 and hyphens"
21+
invalidNameMsg = "Can only contain a-z (lowercase), 0-9 and hyphens"
2222
invalidCertMsg = "Could not load certificate"
2323
invalidPodMsg = "does not exist in application"
2424
invalidDomainMsg = "Hostname does not look valid."

errors_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ func TestErrors(t *testing.T) {
9999
errorTest{
100100
res: &http.Response{
101101
StatusCode: 400,
102-
Body: readCloser(`{"id":["App name can only contain a-z (lowercase), 0-9 and hypens","Enter a valid \"slug\" consisting of letters, numbers, underscores or hyphens."]}`),
102+
Body: readCloser(`{"id":["App name can only contain a-z (lowercase), 0-9 and hyphens","Enter a valid \"slug\" consisting of letters, numbers, underscores or hyphens."]}`),
103103
},
104104
expected: ErrInvalidAppName,
105105
},
@@ -155,7 +155,7 @@ func TestErrors(t *testing.T) {
155155
errorTest{
156156
res: &http.Response{
157157
StatusCode: 400,
158-
Body: readCloser(`{"name":["Can only contain a-z (lowercase), 0-9 and hypens"]}`),
158+
Body: readCloser(`{"name":["Can only contain a-z (lowercase), 0-9 and hyphens"]}`),
159159
},
160160
expected: ErrInvalidName,
161161
},

0 commit comments

Comments
 (0)