refactor(api): update error message for /users/admin/init

pull/2244/merge
Anthony Lapenna 2018-09-03 20:18:04 +02:00
parent 0efeeaf185
commit 0b8f7f6cea
1 changed files with 1 additions and 1 deletions

View File

@ -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{