Skip to content

Commit

Permalink
Merge pull request #1796 from hannobraun/errors
Browse files Browse the repository at this point in the history
Add missing information to error messages
  • Loading branch information
hannobraun authored Apr 26, 2023
2 parents 1aa2509 + 5ddf20f commit f678e59
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 f678e59

Please sign in to comment.