lint: better error handling; count "faultly" files
This commit is contained in:
parent
8d7fcd6ef4
commit
d1cad19fea
1 changed files with 2 additions and 0 deletions
|
@ -42,6 +42,8 @@ enum FormatterError {
|
|||
enum LintError {
|
||||
#[error("Lint errors found in {file_count} file(s)")]
|
||||
DiagnosticErrors { file_count: usize },
|
||||
#[error("File discovery error: {0}")]
|
||||
FileDiscovery(#[from] anyhow::Error),
|
||||
}
|
||||
|
||||
#[derive(Parser, Debug, Clone)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue