minor: better error message

This commit is contained in:
Aleksey Kladov 2021-07-04 11:20:31 +03:00
parent 266636450d
commit c2704bebc1

View file

@ -183,7 +183,7 @@ fn self_hosting_parsing() {
if !errors.is_empty() {
let errors = errors
.into_iter()
.map(|(path, err)| format!("{}: {:?}\n", path.display(), err))
.map(|(path, err)| format!("{}: {:?}\n", path.display(), err[0]))
.collect::<String>();
panic!("Parsing errors:\n{}\n", errors);
}