anyhow is better for main fn because it outputs anyhow errors correctly
This commit is contained in:
parent
dee015f346
commit
d0d940c7fb
|
@ -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)?;
|
||||
|
||||
|
|
Loading…
Reference in New Issue