Use a more specific error if we reject a tenant property change due to it needing to be moved
This commit is contained in:
parent
41c1bef3bf
commit
524c3131c5
|
@ -1431,8 +1431,7 @@ struct ConfigureTenantImpl {
|
|||
|
||||
// We don't currently support movement between groups on different clusters
|
||||
else {
|
||||
// TODO: surface better error to fdbcli?
|
||||
throw invalid_tenant_configuration();
|
||||
throw tenant_cannot_be_moved();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -247,6 +247,7 @@ ERROR( cluster_configuration_failure, 2155, "Could not configure cluster" )
|
|||
ERROR( cluster_already_registered, 2156, "Data cluster is already registered with a metacluster" )
|
||||
ERROR( metacluster_no_capacity, 2157, "Metacluster does not have capacity to create new tenants" )
|
||||
ERROR( management_cluster_invalid_access, 2158, "Standard transactions cannot be run against the management cluster" )
|
||||
ERROR( tenant_cannot_be_moved, 2159, "The tenant cannot be moved between clusters" )
|
||||
|
||||
// 2200 - errors from bindings and official APIs
|
||||
ERROR( api_version_unset, 2200, "API version is not set" )
|
||||
|
|
Loading…
Reference in New Issue