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
1 changed files with 1 additions and 1 deletions

View File

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