change error message status indicator

This commit is contained in:
markichnich 2023-08-24 09:39:04 +02:00
parent 7594ac19d6
commit 3e9b843131
2 changed files with 4 additions and 4 deletions

View File

@ -142,7 +142,7 @@ impl State {
pub fn move_cursor_to(&mut self, row: usize, col: usize) { pub fn move_cursor_to(&mut self, row: usize, col: usize) {
assert!( assert!(
row < 9 && col < 9, 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_row = row;
self.cur_col = col; self.cur_col = col;

View File

@ -37,9 +37,9 @@ where
height, 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) queue!(screen.ostream, EnterAlternateScreen)
.expect("[-]: Error: ui::init: Failed to enter alternate screen."); .expect("[!]: Error: ui::init: Failed to enter alternate screen.");
screen screen
} }
@ -56,7 +56,7 @@ where
if height < 14 || width < 54 { if height < 14 || width < 54 {
self.clear()?; self.clear()?;
self.deinit(); 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)); return Err(io::Error::from(io::ErrorKind::Other));
} }