feat(terminal): log error if failed to show cursor on drop

pull/82/head
Florian Dehau 6 years ago
parent 03bfcde147
commit fdf3015ad0

@ -48,8 +48,8 @@ where
fn drop(&mut self) {
// Attempt to restore the cursor state
if self.hidden_cursor {
if let Err(_) = self.show_cursor() {
error!("Failed to show the cursor");
if let Err(err) = self.show_cursor() {
error!("Failed to show the cursor: {}", err);
}
}
}

Loading…
Cancel
Save