anyhow is better for main fn because it outputs anyhow errors correctly

This commit is contained in:
jannikac 2023-02-04 15:30:39 +01:00
parent dee015f346
commit d0d940c7fb

View file

@ -264,7 +264,7 @@ async fn run(
} }
#[tokio::main(flavor = "current_thread")] #[tokio::main(flavor = "current_thread")]
async fn main() -> Result<(), ClientError> { async fn main() -> anyhow::Result<()> {
let opts = opts::Opts::parse(); let opts = opts::Opts::parse();
let conf = config::load_config(&opts)?; let conf = config::load_config(&opts)?;