We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c185b40 commit 0ac1528Copy full SHA for 0ac1528
src/acme.rs
@@ -479,7 +479,16 @@ where
479
);
480
481
if result.status != AuthorizationStatus::Valid {
482
- return Err(NewCertificateError::AuthorizationStatus(result.status));
+ if let Some(err) = result
483
+ .challenges
484
+ .iter()
485
+ .find(|x| x.kind == challenge.kind)
486
+ .and_then(|x| x.error.clone())
487
+ {
488
+ return Err(err.into());
489
+ } else {
490
+ return Err(NewCertificateError::AuthorizationStatus(result.status));
491
+ }
492
}
493
494
Ok(())
0 commit comments