From e8926da56c9b8b09f88d166ec3709b9112e3be27 Mon Sep 17 00:00:00 2001 From: Victor Brekenfeld Date: Fri, 22 May 2020 23:06:58 +0200 Subject: [PATCH] graphics: Log underlying error of SwapBuffers --- src/backend/graphics/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/backend/graphics/mod.rs b/src/backend/graphics/mod.rs index 8848163..3b5308d 100644 --- a/src/backend/graphics/mod.rs +++ b/src/backend/graphics/mod.rs @@ -32,7 +32,7 @@ pub enum SwapBuffersError { /// /// Operations will have no effect. Functions that read textures, buffers, etc. /// will return uninitialized data instead. - #[error("The context has been lost, it needs to be recreated")] + #[error("The context has been lost, it needs to be recreated: {0}")] ContextLost(Box), /// A temporary condition caused to rendering to fail. /// @@ -43,6 +43,6 @@ pub enum SwapBuffersError { /// Proceed after investigating the source to reschedule another full rendering step or just this page_flip at a later time. /// If the root cause cannot be discovered and subsequent renderings also fail, it is advised to fallback to /// recreation. - #[error("A temporary condition caused the page flip to fail.")] + #[error("A temporary condition caused the page flip to fail: {0}")] TemporaryFailure(Box), }