diff --git a/crates/fj-kernel/src/validate/shell.rs b/crates/fj-kernel/src/validate/shell.rs index 4d6e7f1de..46a9e186e 100644 --- a/crates/fj-kernel/src/validate/shell.rs +++ b/crates/fj-kernel/src/validate/shell.rs @@ -41,14 +41,22 @@ pub enum ShellValidationError { #[error( "Shell contains HalfEdges that are identical but do not coincide\n\ Edge 1: {edge_1:#?}\n\ - Edge 2: {edge_2:#?}" + Surface for edge 1: {surface_1:#?}\n\ + Edge 2: {edge_2:#?}\n\ + Surface for edge 2: {surface_2:#?}" )] IdenticalEdgesNotCoincident { /// The first edge edge_1: Handle, + /// The surface that the first edge is on + surface_1: Handle, + /// The second edge edge_2: Handle, + + /// The surface that the second edge is on + surface_2: Handle, }, } @@ -129,7 +137,9 @@ impl ShellValidationError { errors.push( Self::IdenticalEdgesNotCoincident { edge_1: edge.0.clone(), + surface_1: edge.1.clone(), edge_2: other_edge.0.clone(), + surface_2: other_edge.1.clone(), } .into(), )