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

This commit is contained in:
Anthony Lapenna
2018-09-03 20:18:04 +02:00
parent 0efeeaf185
commit 0b8f7f6cea

View File

@@ -39,7 +39,7 @@ func (handler *Handler) adminInit(w http.ResponseWriter, r *http.Request) *httpe
}
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{