diff options
Diffstat (limited to 'src/main.rs')
-rw-r--r-- | src/main.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs index 24d1bbba29ca..f2c3d00f96d7 100644 --- a/src/main.rs +++ b/src/main.rs @@ -23,6 +23,7 @@ use prettytable::format::consts::FORMAT_BOX_CHARS; use settings::Settings; use std::io::{self, StdinLock, StdoutLock}; +use std::panic; use termion::raw::IntoRawMode; use termion::raw::RawTerminal; @@ -34,8 +35,9 @@ fn init( w: u16, h: u16, ) { + panic::set_hook(Box::new(|info| error!("{}", info))); let game = Game::new(settings, stdout, stdin, w, h); - game.run() + game.run().unwrap() } fn main() { |