diff options
Diffstat (limited to 'alacritty/src')
-rw-r--r-- | alacritty/src/renderer/mod.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/alacritty/src/renderer/mod.rs b/alacritty/src/renderer/mod.rs index d5d48b43..2a1d8721 100644 --- a/alacritty/src/renderer/mod.rs +++ b/alacritty/src/renderer/mod.rs @@ -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) + }, + } } } |