mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
auto merge of #2426 : bjwbell/servo/add-message-to-assert, r=pcwalton
If msttcorefonts isn't installed, output a more informative error message. ./servo ../src/test/html/about-mozilla.html prints "task 'LayoutWorker' failed at 'No matching font(s), are the appropriate fonts installed?', ../servo/src/components/gfx/font_context.rs:195" vs. "task 'LayoutWorker' failed at 'assertion failed: fonts.len() > 0', ../servo/src/components/gfx/font_context.rs:195"
This commit is contained in:
commit
3ccc81b9dc
1 changed files with 1 additions and 1 deletions
|
@ -192,7 +192,7 @@ impl FontContext {
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
assert!(fonts.len() > 0);
|
assert!(fonts.len() > 0, "No matching font(s), are the appropriate fonts installed?");
|
||||||
// TODO(Issue #179): Split FontStyle into specified and used styles
|
// TODO(Issue #179): Split FontStyle into specified and used styles
|
||||||
let used_style = (*style).clone();
|
let used_style = (*style).clone();
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue