]> git.lizzy.rs Git - rust.git/commitdiff
bootstrap: Output name of failed config in case of errors
authorDennis Schridde <devurandom@users.noreply.github.com>
Sun, 7 May 2017 21:20:28 +0000 (23:20 +0200)
committerGitHub <noreply@github.com>
Sun, 7 May 2017 21:20:28 +0000 (23:20 +0200)
src/bootstrap/config.rs

index 34fbc33d981afddfdc8af7662b85e2ed82a885d4..9c536111811aab1d41a261c3130e4dc862ddad9c 100644 (file)
@@ -264,7 +264,7 @@ pub fn parse(build: &str, file: Option<PathBuf>) -> 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);