1
0
Fork 0
mirror of https://github.com/alacritty/alacritty.git synced 2024-11-18 13:55:23 -05:00

Fix stack overflow when printing shader error

Fixes #3238.
This commit is contained in:
Kirill Chibisov 2020-01-22 01:36:44 +03:00 committed by Christian Duerr
parent 906f14b660
commit 767d59155a
2 changed files with 6 additions and 1 deletions

View file

@ -34,6 +34,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Block selection starting from first column after beginning leaves the scrollback
- Incorrect selection status of the first cell when selection is off screen
- Backwards bracket selection
- Stack overflow when printing shader creation error
### Removed

View file

@ -88,7 +88,11 @@ impl std::error::Error for Error {
impl Display for Error {
fn fmt(&self, f: &mut Formatter<'_>) -> fmt::Result {
write!(f, "There was an error initializing the shaders: {}", self)
match self {
Error::ShaderCreation(err) => {
write!(f, "There was an error initializing the shaders: {}", err)
},
}
}
}