Add context to iteration errors

This commit is contained in:
mdecimus
2024-10-17 17:30:45 +02:00
parent a1c5be0e11
commit 9e78aaa751
11 changed files with 23 additions and 12 deletions

View File

@@ -257,7 +257,8 @@ impl QueueManagement for Server {
Ok(max_total == 0 || total < max_total)
},
)
.await?;
.await
.caused_by(trc::location!())?;
Ok(if values {
JsonResponse::new(json!({
@@ -512,7 +513,8 @@ impl QueueManagement for Server {
Ok(max_total == 0 || total < max_total)
},
)
.await?;
.await
.caused_by(trc::location!())?;
Ok(JsonResponse::new(json!({
"data": {