From 20d5d8b1359b959a0d339a742c945bc72bb5ca4a Mon Sep 17 00:00:00 2001 From: jyviko <2501648+jyviko@users.noreply.github.com> Date: Sat, 31 Oct 2026 00:01:07 -0400 Subject: [PATCH] kernel: an extension SMLib cannot make exact says so, naming the length asked Co-Authored-By: Claude Opus 5.5 --- crates/kernel/src/surface_extend.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/crates/kernel/src/surface_extend.rs b/crates/kernel/src/surface_extend.rs index 1e0af2d3c..8315b3b4c 100644 --- a/crates/kernel/src/surface_extend.rs +++ b/crates/kernel/src/surface_extend.rs @@ -340,7 +340,9 @@ fn one_face(body: &Body, at: &[Vec3], distance: f64, mode: ExtendMode) -> Result solidcraft_smlib::Error::Unsupported => KernelError::Invalid( "not supported yet: extending an edge that is not a whole side of its surface's parameter box (a trimmed edge)".into(), ), - solidcraft_smlib::Error::NotExact => KernelError::Invalid("the extension would run past a pole of its surface or wrap round it".into()), + solidcraft_smlib::Error::NotExact => KernelError::Invalid(format!( + "the surface cannot be extended exactly {distance} mm there: the extension would run past a pole of its surface, wrap round it, or not reach that length" + )), solidcraft_smlib::Error::NoMatch { .. } => KernelError::Invalid(format!("no edge at {p:?}")), e => failed("extend", e), })?;