Skip to content

Commit 3dddbbd

Browse files
authored
Merge pull request #1501 from luser/better-missing-rustfmt-error
Produce a more useful error message when rustfmt can't be found. Fixes #1205
2 parents 8747bc9 + 4697025 commit 3dddbbd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@ __bindgen.*
1616
csmith-fuzzing/platform.info
1717

1818
# Backups of test cases from C-Reduce
19-
**.orig
19+
**/*.orig

src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1835,7 +1835,7 @@ impl Bindings {
18351835
writer.write(rustfmt_bindings.as_bytes())?;
18361836
},
18371837
Err(err) => {
1838-
eprintln!("{:?}", err);
1838+
eprintln!("Failed to run rustfmt: {} (non-fatal, continuing)", err);
18391839
writer.write(bindings.as_bytes())?;
18401840
},
18411841
}

0 commit comments

Comments
 (0)