9482: minor: better error message r=matklad a=matklad

bors r+
🤖

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
This commit is contained in:
bors[bot] 2021-07-04 08:21:11 +00:00 committed by GitHub
commit 2885c89bfd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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);
}