mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-14 02:49:40 +00:00
minor: better error message
This commit is contained in:
parent
266636450d
commit
c2704bebc1
@ -183,7 +183,7 @@ fn self_hosting_parsing() {
|
|||||||
if !errors.is_empty() {
|
if !errors.is_empty() {
|
||||||
let errors = errors
|
let errors = errors
|
||||||
.into_iter()
|
.into_iter()
|
||||||
.map(|(path, err)| format!("{}: {:?}\n", path.display(), err))
|
.map(|(path, err)| format!("{}: {:?}\n", path.display(), err[0]))
|
||||||
.collect::<String>();
|
.collect::<String>();
|
||||||
panic!("Parsing errors:\n{}\n", errors);
|
panic!("Parsing errors:\n{}\n", errors);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user