mirror of
https://github.com/SeriousBug/gandi-live-dns-rust
synced 2024-05-18 03:09:04 -05:00
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")]
|
#[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)?;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue