diff --git a/src/main.rs b/src/main.rs index 617ce42..d99e718 100644 --- a/src/main.rs +++ b/src/main.rs @@ -44,7 +44,8 @@ async fn main() -> Result<()> { let conf: Config = conf_extractor .merge(FileAdapter::wrap(Env::prefixed("IMMICH_TOOLS_"))) .merge(Serialized::defaults(&args)) - .extract()?; + .extract() + .wrap_err_with(|| "Invalid configuration or insufficient command line arguments")?; let client = get_client(&conf.server_url, &conf.api_key)?;