1
1
mirror of https://github.com/wez/wezterm.git synced 2024-12-24 13:52:55 +03:00

Add error reason to X11 connection error

refs: https://github.com/wez/wezterm/issues/249
This commit is contained in:
Wez Furlong 2020-08-12 22:03:57 -07:00
parent 96cdadca48
commit ea7d28e2f3

View File

@ -261,7 +261,7 @@ impl XConnection {
None => match self.conn.has_error() {
Ok(_) => (),
Err(err) => {
bail!("X11 connection is broken: {:?}", err);
bail!("X11 connection is broken: {:?} {}", err, err.to_string());
}
},
Some(event) => {