We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cc1bbb7 commit e828f91Copy full SHA for e828f91
src/request/plan.rs
@@ -265,7 +265,7 @@ impl<P: Plan> Clone for ExtractError<P> {
265
/// returns an `Err` wrapping the error.
266
///
267
/// The errors come from two places: `Err` from inner plans, and `Ok(response)`
268
-/// where `response` contains unresolved errors.
+/// where `response` contains unresolved errors (`error` and `region_error`).
269
#[async_trait]
270
impl<P: Plan> Plan for ExtractError<P>
271
where
@@ -277,6 +277,8 @@ where
277
let mut result = self.inner.execute().await?;
278
if let Some(error) = result.error() {
279
Err(error)
280
+ } else if let Some(error) = result.region_error() {
281
+ Err(error)
282
} else {
283
Ok(result)
284
}
0 commit comments