mirror of
https://github.com/alacritty/alacritty.git
synced 2024-11-25 14:05:41 -05:00
add suggestive fallback messages on unavailable fonts
as per https://github.com/jwilm/alacritty/issues/39
This commit is contained in:
parent
f85cc353a6
commit
67aba7f4e4
2 changed files with 4 additions and 2 deletions
|
@ -111,7 +111,8 @@ impl ::std::fmt::Display for Error {
|
||||||
write!(f, "Glyph not found for char {:?}", c)
|
write!(f, "Glyph not found for char {:?}", c)
|
||||||
},
|
},
|
||||||
Error::MissingFont(ref desc) => {
|
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 => {
|
Error::FontNotLoaded => {
|
||||||
f.write_str("Tried to use a font that hasn't been loaded")
|
f.write_str("Tried to use a font that hasn't been loaded")
|
||||||
|
|
|
@ -252,7 +252,8 @@ impl ::std::fmt::Display for Error {
|
||||||
err.fmt(f)
|
err.fmt(f)
|
||||||
},
|
},
|
||||||
Error::MissingFont(ref desc) => {
|
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 => {
|
Error::FontNotLoaded => {
|
||||||
f.write_str("Tried to use a font that hasn't been loaded")
|
f.write_str("Tried to use a font that hasn't been loaded")
|
||||||
|
|
Loading…
Reference in a new issue