Skip to content

Commit

Permalink
Add error message when an error occurs
Browse files Browse the repository at this point in the history
  • Loading branch information
ykdy3951 committed Feb 29, 2024
1 parent dabe13e commit 6f3985c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,7 @@ async fn main() {
// Parse the command line arguments
let cli = Cli::parse();

if let Err(_error) = handle_command(cli.commands).await {}
if let Err(_error) = handle_command(cli.commands).await {
println!("\n\nError Occurred\n{}", _error.to_string());
}
}

0 comments on commit 6f3985c

Please sign in to comment.