Tweak example code

This commit is contained in:
Dirkjan Ochtman 2023-08-01 10:17:16 +02:00
parent 11c231bace
commit ab29b552eb
1 changed files with 2 additions and 2 deletions

View File

@ -72,7 +72,7 @@ async fn main() -> anyhow::Result<()> {
let Identifier::Dns(identifier) = &authz.identifier; let Identifier::Dns(identifier) = &authz.identifier;
println!("Please set the following DNS record then press any key:"); println!("Please set the following DNS record then press the Return key:");
println!( println!(
"_acme-challenge.{} IN TXT {}", "_acme-challenge.{} IN TXT {}",
identifier, identifier,
@ -106,7 +106,7 @@ async fn main() -> anyhow::Result<()> {
match tries < 5 { match tries < 5 {
true => info!(?state, tries, "order is not ready, waiting {delay:?}"), true => info!(?state, tries, "order is not ready, waiting {delay:?}"),
false => { false => {
error!(?state, tries, "order is not ready"); error!(tries, "order is not ready: {state:#?}");
return Err(anyhow::anyhow!("order is not ready")); return Err(anyhow::anyhow!("order is not ready"));
} }
} }