From 5ddf20f78ec6286b3867c339c84c9db844f180d0 Mon Sep 17 00:00:00 2001 From: Hanno Braun Date: Wed, 26 Apr 2023 09:53:56 +0200 Subject: [PATCH] Add missing information to error messages --- crates/fj-kernel/src/validate/mod.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/crates/fj-kernel/src/validate/mod.rs b/crates/fj-kernel/src/validate/mod.rs index 40cd15cbe..d8530b545 100644 --- a/crates/fj-kernel/src/validate/mod.rs +++ b/crates/fj-kernel/src/validate/mod.rs @@ -98,23 +98,23 @@ impl Default for ValidationConfig { #[derive(Clone, Debug, thiserror::Error)] pub enum ValidationError { /// `Cycle` validation error - #[error("`Cycle` validation error\n")] + #[error("`Cycle` validation error:\n {0}")] Cycle(#[from] CycleValidationError), /// `Face` validation error - #[error("`Face` validation error\n")] + #[error("`Face` validation error\n {0}")] Face(#[from] FaceValidationError), /// `HalfEdge` validation error - #[error("`HalfEdge` validation error\n")] + #[error("`HalfEdge` validation error\n {0}")] HalfEdge(#[from] HalfEdgeValidationError), /// `Shell` validation error - #[error("`Shell` validation error\n")] + #[error("`Shell` validation error\n {0}")] Shell(#[from] ShellValidationError), /// `Solid` validation error - #[error("`Solid` validation error\n")] + #[error("`Solid` validation error\n {0}")] Solid(#[from] SolidValidationError), }