mirror of
https://github.com/portainer/portainer.git
synced 2025-07-23 15:29:42 +02:00
refactor(api): update error message for /users/admin/init
This commit is contained in:
parent
0efeeaf185
commit
0b8f7f6cea
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue