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
This commit is contained in:
Wez Furlong committed 2022-04-04 07:06:27 -07:00
1 parent 6c5e54c47e
commit 4f59c17f19
1 file changed
+1 -1
+1 -1
View File
@@ -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);
}