Skip to content

Commit dcccd28

Browse files
Warn instead of failing for themes
1 parent 3eba284 commit dcccd28

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
@@ -371,10 +371,9 @@ impl Options {
371371
}
372372
let (success, ret) = theme::test_theme_against(&theme_file, &paths, &diag);
373373
if !success || !ret.is_empty() {
374-
diag.struct_err(&format!("invalid theme: \"{}\"", theme_s))
374+
diag.struct_warn(&format!("invalid theme: \"{}\"", theme_s))
375375
.help("check what's wrong with the --theme-checker option")
376376
.emit();
377-
return Err(1);
378377
}
379378
themes.push(theme_file);
380379
}

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)