get differences

This commit is contained in:
Guillaume Gomez
2018-01-25 21:58:10 +01:00
parent 94ad4e1d38
commit b44b033bf1
2 changed files with 43 additions and 10 deletions

View File

@@ -330,9 +330,11 @@ pub fn main_args(args: &[String]) -> isize {
println!("rustdoc: [theme-checker] Starting tests!");
for theme_file in to_check.iter() {
print!(" - Checking \"{}\"...", theme_file);
if !theme::test_theme_against(theme_file, &pathes) {
let differences = theme::test_theme_against(theme_file, &pathes);
if !differences.is_empty() {
eprintln!(" FAILED");
errors += 1;
eprintln!("{}", differences.join("\n"));
} else {
println!(" OK");
}