Add message to fonts.len() == 0 assert

This commit is contained in:
Bryan Bell 2014-05-13 16:57:35 -07:00
parent 6640f2edd8
commit 8162f61ba5

View file

@ -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();