From 062bb0cef23b82ae31085ca25b79429474adca3e Mon Sep 17 00:00:00 2001 From: Eleanore Young Date: Mon, 22 Oct 2018 00:12:51 +0200 Subject: [PATCH] On linux without X11 or Wayland, reduced the panic message to a single line (#681) --- CHANGELOG.md | 1 + src/platform/linux/mod.rs | 5 +---- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 050abcc0..849a2697 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -18,6 +18,7 @@ - Implemented the `Debug` trait for `Window`, `EventsLoop`, `EventsLoopProxy` and `WindowBuilder`. - On X11, now a `Resized` event will always be generated after a DPI change to ensure the window's logical size is consistent with the new DPI. - Added further clarifications to the DPI docs. +- On Linux, if neither X11 nor Wayland manage to initialize, the corresponding panic now consists of a single line only. # Version 0.17.2 (2018-08-19) diff --git a/src/platform/linux/mod.rs b/src/platform/linux/mod.rs index beca2076..65eabe1e 100644 --- a/src/platform/linux/mod.rs +++ b/src/platform/linux/mod.rs @@ -430,10 +430,7 @@ impl EventsLoop { }; let err_string = format!( -r#"Failed to initialize any backend! - Wayland status: {:#?} - X11 status: {:#?} -"#, + "Failed to initialize any backend! Wayland status: {:?} X11 status: {:?}", wayland_err, x11_err, );