add comment to prevent regressing PR #17

This commit is contained in:
dvdsk 2023-04-23 17:23:11 +02:00 committed by Dirkjan Ochtman
parent 3257747d6b
commit 9f9c6e48fe
1 changed files with 3 additions and 0 deletions

View File

@ -246,6 +246,9 @@ impl Account {
Ok(Order {
account: self.inner.clone(),
nonce,
// Order of fields matters! We return errors from Problem::check
// before emitting an error if there is no order url. Or the
// simple no url error hides the causing error in `Problem::check`.
state: Problem::check::<OrderState>(rsp).await?,
url: order_url.ok_or("no order URL found")?,
})