diff --git a/crates/fj-core/src/validate/shell.rs b/crates/fj-core/src/validate/shell.rs index e54800f30..ec72df05e 100644 --- a/crates/fj-core/src/validate/shell.rs +++ b/crates/fj-core/src/validate/shell.rs @@ -39,7 +39,7 @@ impl Validate for Shell { #[derive(Clone, Debug, thiserror::Error)] pub enum ShellValidationError { /// [`Shell`] contains a half-edge that is not part of a pair - #[error("Half-edge has no sibling: {:#?}", .0.half_edge)] + #[error(transparent)] HalfEdgeHasNoSibling(HalfEdgeHasNoSibling), /// [`Shell`] contains half-edges that are coincident, but aren't siblings diff --git a/crates/fj-core/src/validation/checks/half_edge_siblings.rs b/crates/fj-core/src/validation/checks/half_edge_siblings.rs index 71e06b226..180206944 100644 --- a/crates/fj-core/src/validation/checks/half_edge_siblings.rs +++ b/crates/fj-core/src/validation/checks/half_edge_siblings.rs @@ -11,7 +11,8 @@ use crate::{storage::Handle, topology::HalfEdge}; /// - If the shell is closed, that its topological object graph is not valid. /// /// [`Shell`]: crate::topology::Shell -#[derive(Clone, Debug)] +#[derive(Clone, Debug, thiserror::Error)] +#[error("Half-edge has no sibling: {half_edge:#?}")] pub struct HalfEdgeHasNoSibling { /// The half-edge that does not have a sibling pub half_edge: Handle,