Skip to content

Commit

Permalink
Prevent App from crashing
Browse files Browse the repository at this point in the history
  • Loading branch information
skyline69 committed May 9, 2023
1 parent 261b07e commit ef20fa3
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "haxrs"
version = "0.1.1"
version = "0.1.2"
edition = "2021"
authors = ["skyline <[email protected]>"]
license-file = "LICENSE"
Expand Down
8 changes: 7 additions & 1 deletion src/behind/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,13 @@ pub enum Command {
fn menu_table_select() {
clear_terminal().unwrap();
print_login_logo();
menu_table().unwrap();
match menu_table() {
Ok(_) => {}
Err(e) => {
error_msg(&format!("Failed to print menu table: {}", e));
std::process::exit(1);
}
}
}

pub fn command_input() -> Result<Command, TerminalError> {
Expand Down

0 comments on commit ef20fa3

Please sign in to comment.