From 4f59c17f1963eaffae5a0b4933ebae47befb326d Mon Sep 17 00:00:00 2001 From: Wez Furlong Date: Mon, 4 Apr 2022 07:06:27 -0700 Subject: [PATCH] window: include debug repr of window creation errors The glium IncompatibleOpenGl Display doesn't include any of the useful context to explain what the issue was, so this commit renders the error both in human friendly and Debug form to see if we can understand more about what is happening. refs: https://github.com/wez/wezterm/issues/1813 --- wezterm-gui/src/frontend.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wezterm-gui/src/frontend.rs b/wezterm-gui/src/frontend.rs index afbbf5ca2..0c54abd58 100644 --- a/wezterm-gui/src/frontend.rs +++ b/wezterm-gui/src/frontend.rs @@ -205,7 +205,7 @@ impl GuiFrontEnd { promise::spawn::spawn(async move { while let Some(mux_window_id) = mux_windows.next() { if let Err(err) = TermWindow::new_window(mux_window_id).await { - log::error!("Failed to create window: {:#}", err); + log::error!("Failed to create window: {:#} ({:?})", err, err); let mux = Mux::get().expect("switching_workspaces to trigger on main thread"); mux.kill_window(mux_window_id); }