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:
parent
e17c873e73
commit
d5facde9d4
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue