We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0083012 commit 7424afeCopy full SHA for 7424afe
src/tools/generate-copyright/src/main.rs
@@ -85,7 +85,10 @@ fn main() -> Result<(), Error> {
85
fn check_file_contents(path: &Path, new_contents: &str) -> Result<(), Error> {
86
let orig_contents = std::fs::read_to_string(&path)?;
87
if orig_contents != new_contents {
88
- anyhow::bail!("File {} is out of date", path.display());
+ anyhow::bail!(
89
+ "File {} is out of date. Run `x run tools/generate-copyright` to regenerate it.",
90
+ path.display()
91
+ );
92
} else {
93
println!("File {} is OK", path.display());
94
}
0 commit comments