From 16f59c9186b3dd5d5ad48881dfed57c289df0bf8 Mon Sep 17 00:00:00 2001 From: Simon Gardling Date: Wed, 20 Apr 2022 09:45:51 -0400 Subject: [PATCH] use file names in asset loading errors --- src/math_app.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/math_app.rs b/src/math_app.rs index a362b6e..42aa504 100644 --- a/src/math_app.rs +++ b/src/math_app.rs @@ -128,10 +128,10 @@ lazy_static::lazy_static! { tracing::info!("Done loading assets! Took: {:?}", start.elapsed()); let font_data: BTreeMap = BTreeMap::from([ - ("Hack".to_owned(), font_hack.expect("Hack font not found!")), - ("Ubuntu-Light".to_owned(), font_ubuntu_light.expect("Ubuntu Light font not found!")), - ("NotoEmoji-Regular".to_owned(), font_notoemoji.expect("Noto Emoji font not found!")), - ("emoji-icon-font".to_owned(), font_emoji_icon.expect("Emoji Icon Font not found!")) + ("Hack".to_owned(), font_hack.expect("Hack -Regular.ttf not found!")), + ("Ubuntu-Light".to_owned(), font_ubuntu_light.expect("Ubuntu-Light.ttf not found!")), + ("NotoEmoji-Regular".to_owned(), font_notoemoji.expect("NotoEmoji-Regular.ttf not found!")), + ("emoji-icon-font".to_owned(), font_emoji_icon.expect("emoji-icon-font.ttf not found!")) ]); let families = BTreeMap::from([ @@ -156,7 +156,7 @@ lazy_static::lazy_static! { // Create and return Assets struct Assets::new( - fonts, text_data.expect("Text data not found!")) + fonts, text_data.expect("text.json not found!")) }; }