Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Better error propagation / display. #38

Merged
merged 1 commit into from
Aug 22, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading