diff options
author | Tom Crayford <tcrayford@googlemail.com> | 2017-01-08 21:31:57 +0000 |
---|---|---|
committer | Joe Wilm <jwilm@users.noreply.github.com> | 2017-01-12 21:21:14 -0800 |
commit | 67aba7f4e4758c5fcb7eda50f083b138017fbfdb (patch) | |
tree | 22ebfad486750ef7fe6a30c8463825f4fa2f4e80 /font | |
parent | f85cc353a68fa67b9ac7985c38412c103221e24d (diff) | |
download | alacritty-67aba7f4e4758c5fcb7eda50f083b138017fbfdb.tar.gz alacritty-67aba7f4e4758c5fcb7eda50f083b138017fbfdb.zip |
add suggestive fallback messages on unavailable fonts
as per https://github.com/jwilm/alacritty/issues/39
Diffstat (limited to 'font')
-rw-r--r-- | font/src/darwin/mod.rs | 3 | ||||
-rw-r--r-- | font/src/ft/mod.rs | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/font/src/darwin/mod.rs b/font/src/darwin/mod.rs index 69a9f29a..1f925dea 100644 --- a/font/src/darwin/mod.rs +++ b/font/src/darwin/mod.rs @@ -111,7 +111,8 @@ impl ::std::fmt::Display for Error { write!(f, "Glyph not found for char {:?}", c) }, Error::MissingFont(ref desc) => { - write!(f, "Couldn't find a font with {}", desc) + write!(f, "Couldn't find a font with {}\ + \n\tPlease check the font config in your alacritty.yml.", desc) }, Error::FontNotLoaded => { f.write_str("Tried to use a font that hasn't been loaded") diff --git a/font/src/ft/mod.rs b/font/src/ft/mod.rs index f9170ed3..6fdae4bb 100644 --- a/font/src/ft/mod.rs +++ b/font/src/ft/mod.rs @@ -252,7 +252,8 @@ impl ::std::fmt::Display for Error { err.fmt(f) }, Error::MissingFont(ref desc) => { - write!(f, "Couldn't find a font with {}", desc) + write!(f, "Couldn't find a font with {}\ + \n\tPlease check the font config in your alacritty.yml.", desc) }, Error::FontNotLoaded => { f.write_str("Tried to use a font that hasn't been loaded") |