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
1 changed files with 9 additions and 1 deletions

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(())
}