Browse Source

Add error message to JSON deserializer

refactor/no-log-handler
Thomas Eizinger 3 years ago
parent
commit
2eaaf3ab9e
No known key found for this signature in database GPG Key ID: 651AC83A6C6C8B96
  1. 5
      daemon/src/oracle.rs

5
daemon/src/oracle.rs

@ -165,7 +165,10 @@ where
}
};
let attestation = res.json::<Attestation>().await?;
let attestation = res
.json::<Attestation>()
.await
.with_context(|| format!("Failed to decode body for event {}", event_id))?;
self.cfd_actor_address
.clone()

Loading…
Cancel
Save