diff options
author | Kirill Chibisov <contact@kchibisov.com> | 2020-07-11 04:01:45 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-11 04:01:45 +0300 |
commit | 5f039cee49b9c817177c6feecc5e7d97fb0a57e1 (patch) | |
tree | 617341d30269b53c8997b5963dd112a187adcca6 /font/src/darwin/mod.rs | |
parent | 521a58d691c815a739e131f0d02cd602c7d14639 (diff) | |
download | r-alacritty-5f039cee49b9c817177c6feecc5e7d97fb0a57e1.tar.gz r-alacritty-5f039cee49b9c817177c6feecc5e7d97fb0a57e1.tar.bz2 r-alacritty-5f039cee49b9c817177c6feecc5e7d97fb0a57e1.zip |
Remove alacritty.yml mentions from font crate errors
Diffstat (limited to 'font/src/darwin/mod.rs')
-rw-r--r-- | font/src/darwin/mod.rs | 11 |
1 files changed, 3 insertions, 8 deletions
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"), } } |