bootstrap: Output name of failed config in case of errors

This commit is contained in:
Dennis Schridde 2017-05-07 23:20:28 +02:00 committed by GitHub
parent 8d19877ece
commit cf05cd8abf

View File

@ -264,7 +264,7 @@ impl Config {
let table = match p.parse() {
Some(table) => table,
None => {
println!("failed to parse TOML configuration:");
println!("failed to parse TOML configuration '{}':", file.to_str().unwrap());
for err in p.errors.iter() {
let (loline, locol) = p.to_linecol(err.lo);
let (hiline, hicol) = p.to_linecol(err.hi);