Skip to content

Commit d8928d8

Browse files
fix(errors): New error message due to DRF 3.4.1 update (#62)
1 parent 6ab0441 commit d8928d8

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

errors.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ const (
2929
duplicateUserMsg = "A user with that username already exists."
3030
invalidEmailMsg = "Enter a valid email address."
3131
invalidTagMsg = "No nodes matched the provided labels"
32-
duplicateIDMsg = "App with this id already exists."
32+
duplicateIDMsg = "Application with this id already exists."
3333
cancellationFailedMsg = "still has applications assigned. Delete or transfer ownership"
3434
duplicateDomainMsg = "Domain is already in use by another application"
3535
duplicateKeyMsg = "Public Key is already in use"

errors_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ func TestErrors(t *testing.T) {
107107
{
108108
res: &http.Response{
109109
StatusCode: 400,
110-
Body: readCloser(`{"id":["App with this id already exists."]}`),
110+
Body: readCloser(`{"id":["Application with this id already exists."]}`),
111111
},
112112
expected: ErrDuplicateApp,
113113
},

0 commit comments

Comments
 (0)