minor: better error message
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user