This commit is contained in:
Dominic Grimm 2023-01-27 18:35:43 +01:00
parent 80470c2fc9
commit 25d59d5b87
No known key found for this signature in database
GPG key ID: 6F294212DEAAC530

View file

@ -742,6 +742,8 @@ impl Client {
struct Data {
finished: bool,
error: bool,
#[serde(rename = "messageId")]
message_id: i32,
#[serde(rename = "reportParams")]
report_params: String,
}
@ -768,7 +770,13 @@ impl Client {
.await?
.json()
.await?;
dbg!(resp);
dbg!(&resp);
if resp.error {
bail!("Error generating report");
} else if !resp.finished {
bail!("Report not finished");
}
Ok(())
}