mirror of https://github.com/portainer/portainer
fix(api): fix invalid error message in endpoint creation handler (#2233)
parent
e17c873e73
commit
d5facde9d4
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue