From 7e2983374ee9baf5ddfc76971afa572cf1cf3a49 Mon Sep 17 00:00:00 2001 From: grovesNL Date: Tue, 18 Oct 2022 13:04:06 -0230 Subject: [PATCH] Reword error messages --- src/error.rs | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/error.rs b/src/error.rs index fac4b43..daffea8 100644 --- a/src/error.rs +++ b/src/error.rs @@ -10,7 +10,7 @@ pub enum PrepareError { impl Display for PrepareError { fn fmt(&self, f: &mut Formatter) -> fmt::Result { - write!(f, "Prepare Error: The Glyph texture atlas is full.") + write!(f, "Prepare error: glyph texture atlas is full") } } @@ -26,11 +26,14 @@ impl Display for RenderError { fn fmt(&self, f: &mut Formatter) -> fmt::Result { match self { RenderError::RemovedFromAtlas => { - write!(f, "Render Error: Glyph no longer Exists within the Atlas.") + write!( + f, + "Render error: glyph no longer exists within the texture atlas" + ) } RenderError::ScreenResolutionChanged => write!( f, - "Render Error: Screen resolution changed since prepare was last executed." + "Render error: screen resolution changed since last `prepare` call" ), } }