Skip to content

Commit ca64df5

Browse files
Warn instead of failing for themes
1 parent 272799f commit ca64df5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/librustdoc/config.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -373,10 +373,9 @@ impl Options {
373373
}
374374
let (success, ret) = theme::test_theme_against(&theme_file, &paths, &diag);
375375
if !success || !ret.is_empty() {
376-
diag.struct_err(&format!("invalid theme: \"{}\"", theme_s))
376+
diag.struct_warn(&format!("invalid theme: \"{}\"", theme_s))
377377
.help("check what's wrong with the --theme-checker option")
378378
.emit();
379-
return Err(1);
380379
}
381380
themes.push(theme_file);
382381
}

src/librustdoc/theme.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,7 @@ pub fn test_theme_against<P: AsRef<Path>>(
273273
diag: &Handler,
274274
) -> (bool, Vec<String>) {
275275
let data = try_something!(fs::read(f), diag, (false, vec![]));
276+
276277
let paths = load_css_paths(&data);
277278
let mut ret = vec![];
278279
get_differences(against, &paths, &mut ret);

0 commit comments

Comments
 (0)