fix(api): fix invalid error message in endpoint creation handler (#2233)

pull/2244/merge
Anthony Lapenna 2018-09-02 10:35:05 +02:00 committed by GitHub
parent e17c873e73
commit d5facde9d4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -35,7 +35,7 @@ type endpointCreatePayload struct {
func (payload *endpointCreatePayload) Validate(r *http.Request) error {
name, err := request.RetrieveMultiPartFormValue(r, "Name", false)
if err != nil {
return portainer.Error("Invalid stack name")
return portainer.Error("Invalid endpoint name")
}
payload.Name = name