diff options
Diffstat (limited to 'src/main.rs')
| -rw-r--r-- | src/main.rs | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/main.rs b/src/main.rs index e7a11a9..4d78916 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,3 +1,9 @@ -fn main() { - println!("Hello, world!"); +use colored::Colorize; + +#[tokio::main] +async fn main() { + if let Err(e) = sbm_rs::run().await { + eprintln!("{} {}", "Error:".red().bold(), e); + std::process::exit(1); + } } |
