Skip to content

Commit 2cbe484

Browse files
goffrieConvex, Inc.
authored andcommitted
Forward RejectedBeforeExecution errors out of evaluate_auth_config (#38333)
GitOrigin-RevId: ad19830abbc188a59291791eb953a2a4b2ba8fd9
1 parent 423b974 commit 2cbe484

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

crates/isolate/src/client.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -989,6 +989,11 @@ impl<RT: Runtime> IsolateClient<RT> {
989989
let auth_config = IsolateClient::<RT>::receive_response(rx)
990990
.await?
991991
.map_err(|e| {
992+
if let Some(e) = e.downcast_ref::<ErrorMetadata>()
993+
&& e.is_rejected_before_execution()
994+
{
995+
return e.clone();
996+
}
992997
let err = if e.is_overloaded() {
993998
recapture_stacktrace(e)
994999
} else {

0 commit comments

Comments
 (0)