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

Suggest cargo vet fmt for formatting errors #619

Merged
merged 1 commit into from
Jul 11, 2024
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion src/errors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -471,7 +471,7 @@ pub struct InvalidCriteriaError {

#[derive(Debug, Error, Diagnostic)]
#[error("A file in the store is not correctly formatted:\n\n{unified_diff}")]
#[diagnostic(help("run `cargo vet` without --locked to reformat files in the store"))]
#[diagnostic(help("run `cargo vet fmt` to reformat files in the store"))]
pub struct BadFormatError {
pub unified_diff: String,
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Error: × A file in the store is not correctly formatted:
│ version = "1.0.0"
│ criteria = "safe-to-deploy"
help: run `cargo vet` without --locked to reformat files in the store
help: run `cargo vet fmt` to reformat files in the store
Error: × A file in the store is not correctly formatted:
│ --- old/audits.toml
Expand All @@ -46,5 +46,5 @@ Error: × A file in the store is not correctly formatted:
│ -notes = "valid field"
│ +version = "2.0.0"
help: run `cargo vet` without --locked to reformat files in the store
help: run `cargo vet fmt` to reformat files in the store

Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@ Error: × A file in the store is not correctly formatted:
│ criteria = "safe-to-deploy"
│ -unknown-field = "hi"
help: run `cargo vet` without --locked to reformat files in the store
help: run `cargo vet fmt` to reformat files in the store

Loading