From 8162f61ba53460b1b8f7acfc1b698c1d8dd7f188 Mon Sep 17 00:00:00 2001 From: Bryan Bell Date: Tue, 13 May 2014 16:57:35 -0700 Subject: [PATCH] Add message to fonts.len() == 0 assert --- src/components/gfx/font_context.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/gfx/font_context.rs b/src/components/gfx/font_context.rs index 021a1b57996..7acadfb5225 100644 --- a/src/components/gfx/font_context.rs +++ b/src/components/gfx/font_context.rs @@ -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 let used_style = (*style).clone();