Skip to content

Commit

Permalink
panic when missing font (#172)
Browse files Browse the repository at this point in the history
  • Loading branch information
sanbox-irl authored Jul 2, 2024
1 parent f893ad1 commit 2536770
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion crates/yakui-widgets/src/widgets/render_text.rs
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,10 @@ impl Widget for RenderTextWidget {
Some(font) => font,
None => {
// TODO: Log once that we were unable to find this font.
return input.min;
panic!(
"font `{}` was set, but was not registered",
self.props.style.font
);
}
};

Expand Down

0 comments on commit 2536770

Please sign in to comment.