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

This commit is contained in:
Florian Dehau 2018-10-14 17:00:13 +02:00
parent 03bfcde147
commit fdf3015ad0

View file

@ -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);
}
}
}