From aeb8c566c2a3c8d96760726643da72a27d8b3201 Mon Sep 17 00:00:00 2001 From: Simon Gardling Date: Wed, 9 Mar 2022 00:52:40 -0500 Subject: [PATCH] useful errors for FileData --- src/egui_app.rs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/egui_app.rs b/src/egui_app.rs index 94ecadc..7c2538a 100644 --- a/src/egui_app.rs +++ b/src/egui_app.rs @@ -110,14 +110,14 @@ lazy_static::lazy_static! { } FileData { - font_ubuntu_light: font_ubuntu_light.unwrap(), - font_notoemoji: font_notoemoji.unwrap(), - font_hack: font_hack.unwrap(), - text_help_expr: text_help_expr.unwrap(), - text_help_vars: text_help_vars.unwrap(), - text_help_panel: text_help_panel.unwrap(), - text_help_function: text_help_function.unwrap(), - text_help_other: text_help_other.unwrap(), + font_ubuntu_light: font_ubuntu_light.expect("Ubuntu Light font not found!"), + font_notoemoji: font_notoemoji.expect("Noto Emoji font not found!"), + font_hack: font_hack.expect("Hack font not found!"), + text_help_expr: text_help_expr.expect("HELP_EXPR not found"), + text_help_vars: text_help_vars.expect("HELP_VARS not found"), + text_help_panel: text_help_panel.expect("HELP_PANEL not found"), + text_help_function: text_help_function.expect("HELP_FUNCTION not found"), + text_help_other: text_help_other.expect("HELP_OTHER not found"), } };