Skip to content

Commit 9840511

Browse files
committed
Don't mention enums in panic message
Signed-off-by: Sebastian Bernauer <[email protected]>
1 parent 211b156 commit 9840511

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

kube-core/src/schema.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,14 +111,14 @@ fn hoist_subschema_properties(
111111
continue;
112112
}
113113

114-
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",
114+
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",
115115
entry.key(),
116116
&property,
117117
entry.get());
118118
}
119119

120120
panic!(
121-
"Property {:?} is already defined in another tagged enum variant",
121+
"Property {:?} was already defined in another subschema",
122122
entry.key()
123123
)
124124
}

0 commit comments

Comments
 (0)