change error message status indicator
This commit is contained in:
parent
7594ac19d6
commit
3e9b843131
@ -142,7 +142,7 @@ impl State {
|
||||
pub fn move_cursor_to(&mut self, row: usize, col: usize) {
|
||||
assert!(
|
||||
row < 9 && col < 9,
|
||||
"[-] Error: State::go_to: Can't move to row/column out of bounds."
|
||||
"[!] Error: State::go_to: Can't move to row/column out of bounds."
|
||||
);
|
||||
self.cur_row = row;
|
||||
self.cur_col = col;
|
||||
|
||||
@ -37,9 +37,9 @@ where
|
||||
height,
|
||||
};
|
||||
|
||||
enable_raw_mode().expect("[-]: Error: ui::init: Failed to enable raw mode.");
|
||||
enable_raw_mode().expect("[!]: Error: ui::init: Failed to enable raw mode.");
|
||||
queue!(screen.ostream, EnterAlternateScreen)
|
||||
.expect("[-]: Error: ui::init: Failed to enter alternate screen.");
|
||||
.expect("[!]: Error: ui::init: Failed to enter alternate screen.");
|
||||
screen
|
||||
}
|
||||
|
||||
@ -56,7 +56,7 @@ where
|
||||
if height < 14 || width < 54 {
|
||||
self.clear()?;
|
||||
self.deinit();
|
||||
eprintln!("[-]: Error: ui::update_dimensions: Terminal size too small to display UI.");
|
||||
eprintln!("[!]: Error: ui::update_dimensions: Terminal size too small to display UI.");
|
||||
return Err(io::Error::from(io::ErrorKind::Other));
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user