Skip to content

Commit

Permalink
Better error propagation / display. (#38)
Browse files Browse the repository at this point in the history
  • Loading branch information
kskalski authored Aug 22, 2023
1 parent ae3e844 commit 5834bcd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions crates/freeze/src/types/errors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,23 +7,23 @@ use thiserror::Error;
#[derive(Error, Debug)]
pub enum FreezeError {
/// Error related to processing file path
#[error("Failed to create file path")]
#[error(transparent)]
FilePathError(#[from] FileError),

/// Error related to joining a tokio task
#[error("Task failed: {0}")]
TaskFailed(#[source] tokio::task::JoinError),

/// Error related to collecting data
#[error("Collect error")]
#[error(transparent)]
CollectError(#[from] CollectError),

/// Error related to progress bar
#[error("Progress bar error")]
ProgressBarError(#[from] indicatif::style::TemplateError),

/// Parse error
#[error("Parsing error")]
#[error(transparent)]
ParseError(#[from] ParseError),

/// Error from serializing report
Expand Down Expand Up @@ -79,7 +79,7 @@ pub enum CollectError {
#[derive(Error, Debug)]
pub enum ParseError {
/// Error related to parsing
#[error("Parsing error")]
#[error("Parsing error {0:?}")]
ParseError(String),

/// Error related to provider operations
Expand Down

0 comments on commit 5834bcd

Please sign in to comment.