Skip to content

Commit 507d9a8

Browse files
committed
clarified error
1 parent f283715 commit 507d9a8

File tree

1 file changed

+3
-3
lines changed
  • rust/operator-binary/src/crd

1 file changed

+3
-3
lines changed

rust/operator-binary/src/crd/mod.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,8 @@ pub enum Error {
105105
#[snafu(display("incompatible merge types"))]
106106
IncompatibleMergeTypes,
107107

108-
#[snafu(display("role-group is not valid"))]
109-
NoRoleGroup,
108+
#[snafu(display("empty values for role-group are not permitted"))]
109+
EmptyRoleGroup,
110110

111111
#[snafu(display("role-group not found by name"))]
112112
RoleGroupNotFound,
@@ -210,7 +210,7 @@ impl v1alpha1::HbaseCluster {
210210

211211
// Trivial values for role-groups are not allowed
212212
if role_group.is_empty() {
213-
return Err(Error::NoRoleGroup);
213+
return Err(Error::EmptyRoleGroup);
214214
}
215215

216216
let (mut role_config, mut role_group_config) = match role {

0 commit comments

Comments
 (0)