Skip to content

Commit

Permalink
refactor: simplify error handling by using a more specific error type…
Browse files Browse the repository at this point in the history
… in main function
  • Loading branch information
Kremilly committed Dec 11, 2024
1 parent 0b6eeff commit 7863a32
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 @@ -8,10 +8,12 @@ mod handlers;
mod args_cli;
mod dump_sync;

use std::error::Error;

use crate::dump_sync::DumpSync;

#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
async fn main() -> Result<(), Box<dyn Error>> {
if let Err(e) = DumpSync.init().await {
eprintln!("Error initializing app: {}", e);
return Err(e);
Expand Down

0 comments on commit 7863a32

Please sign in to comment.