include body in ForgejoError::BadStructure
This commit is contained in:
parent
31a53eb88a
commit
b952e1108a
4 changed files with 20 additions and 15 deletions
|
|
@ -17,6 +17,11 @@ async fn ci() -> eyre::Result<()> {
|
|||
errors += 1;
|
||||
for (i, err) in report.chain().enumerate() {
|
||||
println!("{i}. {err}");
|
||||
if let Some(err) = err.downcast_ref::<forgejo_api::ForgejoError>() {
|
||||
if let forgejo_api::ForgejoError::BadStructure(_, body) = err {
|
||||
println!("BODY: {body}");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if errors > 0 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue