From 5f039cee49b9c817177c6feecc5e7d97fb0a57e1 Mon Sep 17 00:00:00 2001 From: Kirill Chibisov Date: Sat, 11 Jul 2020 04:01:45 +0300 Subject: Remove alacritty.yml mentions from font crate errors --- font/src/darwin/mod.rs | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'font/src/darwin/mod.rs') diff --git a/font/src/darwin/mod.rs b/font/src/darwin/mod.rs index 62baa96b..0194925f 100644 --- a/font/src/darwin/mod.rs +++ b/font/src/darwin/mod.rs @@ -92,8 +92,8 @@ pub enum Error { impl ::std::error::Error for Error { fn description(&self) -> &str { match *self { - Error::MissingGlyph(ref _c) => "Couldn't find the requested glyph", - Error::MissingFont(ref _desc) => "Couldn't find the requested font", + Error::MissingGlyph(ref _c) => "Unable to find the requested glyph", + Error::MissingFont(ref _desc) => "Unable to find the requested font", Error::FontNotLoaded => "Tried to operate on font that hasn't been loaded", } } @@ -103,12 +103,7 @@ impl ::std::fmt::Display for Error { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { match *self { Error::MissingGlyph(ref c) => write!(f, "Glyph not found for char {:?}", c), - Error::MissingFont(ref desc) => write!( - f, - "Couldn't find a font with {}\n\tPlease check the font config in your \ - alacritty.yml.", - desc - ), + Error::MissingFont(ref desc) => write!(f, "Unable to find the font {}", desc), Error::FontNotLoaded => f.write_str("Tried to use a font that hasn't been loaded"), } } -- cgit