mirror of
https://github.com/harness/drone.git
synced 2025-05-08 19:00:30 +08:00
fix: update error message
This commit is contained in:
parent
948c4dbd71
commit
29e8aefd2d
@ -41,7 +41,7 @@ func (c *Controller) UpdateAdmin(ctx context.Context, session *auth.Session,
|
||||
}
|
||||
|
||||
if admUsrCount == 1 {
|
||||
return nil, usererror.BadRequest("cannot remove admin from the only admin user")
|
||||
return nil, usererror.BadRequest("system requires at least one admin user")
|
||||
}
|
||||
|
||||
return user, nil
|
||||
|
Loading…
Reference in New Issue
Block a user