We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e3bb1c1 commit 0e89e3bCopy full SHA for 0e89e3b
src/formatting.rs
@@ -76,7 +76,10 @@ fn format_project<T: FormatHandler>(
76
Err(e) => {
77
let forbid_verbose = input_is_stdin || e != ParserError::ParsePanicError;
78
should_emit_verbose(forbid_verbose, config, || {
79
- eprintln!("The Rust parser panicked");
+ eprintln!(
80
+ "The Rust parser panicked while parsing input: {:?}: {:?}",
81
+ main_file, e
82
+ );
83
});
84
report.add_parsing_error();
85
return Ok(report);
0 commit comments