Skip to content

Commit

Permalink
Don't mention enums in panic message
Browse files Browse the repository at this point in the history
Signed-off-by: Sebastian Bernauer <sebastian.bernauer@stackable.de>
  • Loading branch information
sbernauer committed Oct 3, 2022
1 parent 211b156 commit 9840511
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kube-core/src/schema.rs
Expand Up @@ -111,14 +111,14 @@ fn hoist_subschema_properties(
continue;
}

panic!("Property {:?} has the schema {:?} but was already defined as {:?} in another untagged enum variant. The schemas for a property used in multiple untagged enum variants must be identical",
panic!("Property {:?} has the schema {:?} but was already defined as {:?} in another subschema. The schemas for a property used in multiple subschemas must be identical",
entry.key(),
&property,
entry.get());
}

panic!(
"Property {:?} is already defined in another tagged enum variant",
"Property {:?} was already defined in another subschema",
entry.key()
)
}
Expand Down

0 comments on commit 9840511

Please sign in to comment.