Skip to content

Commit

Permalink
refactor error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
SpontanCombust committed Feb 23, 2024
1 parent b3dee6d commit 1743a59
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion crates/project/src/content.rs
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ pub enum ContentScanError {
FileError(FileError),
#[error(transparent)]
ManifestError(ManifestError),
#[error("This is not content directory")]
#[error("this is not content directory")]
NotContent
}

Expand Down
2 changes: 1 addition & 1 deletion crates/project/src/file_error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use thiserror::Error;


#[derive(Debug, Clone, Error)]
#[error("Error for file or directory {}: {}", .path.display(), .error)]
#[error("error for file or directory {}: {}", .path.display(), .error)]
pub struct FileError {
pub path: PathBuf,
#[source]
Expand Down
2 changes: 1 addition & 1 deletion crates/project/src/manifest.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ pub enum DependencyValue {

#[derive(Debug, Clone, Error)]
pub enum ManifestError {
#[error("File access error")]
#[error("file access error")]
Io(#[from] Arc<io::Error>),
#[error("TOML file parsing error")]
Toml {
Expand Down

0 comments on commit 1743a59

Please sign in to comment.