mirror of https://github.com/portainer/portainer
refactor(api): update error message for /users/admin/init
parent
0efeeaf185
commit
0b8f7f6cea
|
@ -39,7 +39,7 @@ func (handler *Handler) adminInit(w http.ResponseWriter, r *http.Request) *httpe
|
||||||
}
|
}
|
||||||
|
|
||||||
if len(users) != 0 {
|
if len(users) != 0 {
|
||||||
return &httperror.HandlerError{http.StatusConflict, "Unable to retrieve users from the database", portainer.ErrAdminAlreadyInitialized}
|
return &httperror.HandlerError{http.StatusConflict, "Unable to create administrator user", portainer.ErrAdminAlreadyInitialized}
|
||||||
}
|
}
|
||||||
|
|
||||||
user := &portainer.User{
|
user := &portainer.User{
|
||||||
|
|
Loading…
Reference in New Issue