Skip to content

Commit

Permalink
Add missing information to error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
hannobraun committed Apr 26, 2023
1 parent 1aa2509 commit 5ddf20f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions crates/fj-kernel/src/validate/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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),
}

Expand Down

0 comments on commit 5ddf20f

Please sign in to comment.