Skip to content

Commit

Permalink
Merge pull request #1501 from luser/better-missing-rustfmt-error
Browse files Browse the repository at this point in the history
Produce a more useful error message when rustfmt can't be found. Fixes #1205
  • Loading branch information
emilio authored Jan 25, 2019
2 parents 8747bc9 + 4697025 commit 3dddbbd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ __bindgen.*
csmith-fuzzing/platform.info

# Backups of test cases from C-Reduce
**.orig
**/*.orig
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1835,7 +1835,7 @@ impl Bindings {
writer.write(rustfmt_bindings.as_bytes())?;
},
Err(err) => {
eprintln!("{:?}", err);
eprintln!("Failed to run rustfmt: {} (non-fatal, continuing)", err);
writer.write(bindings.as_bytes())?;
},
}
Expand Down

0 comments on commit 3dddbbd

Please sign in to comment.