1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-23 15:29:42 +02:00

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

This commit is contained in:
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

View file

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