Expose connector admission refusals
This commit is contained in:
parent
39748c50bb
commit
eb7132c988
1 changed files with 1 additions and 0 deletions
|
|
@ -249,6 +249,7 @@ async fn serve_one_connection(
|
|||
Ok(value) => value,
|
||||
Err(error) => {
|
||||
release_request(&replay, &outer_request_id).await;
|
||||
eprintln!("model connector pre-execution refusal for {outer_request_id}: {error:#}");
|
||||
return send_error(connection, "model connector rejected the invocation")
|
||||
.await
|
||||
.with_context(|| error.to_string());
|
||||
|
|
|
|||
Reference in a new issue