Skip to content

Commit

Permalink
change error type to 400 if target schema returned a response with er…
Browse files Browse the repository at this point in the history
…rors
  • Loading branch information
BenoitRanque committed May 29, 2024
1 parent d850ce7 commit c53d9a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/ndc-graphql/src/connector.rs
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ impl Connector for GraphQLConnector {

tracing::info_span!("Process Response").in_scope(|| {
if let Some(errors) = response.errors {
Err(MutationError::Other(
Err(MutationError::InvalidRequest(
serde_json::to_string(&errors)
.map_err(|err| MutationError::Other(err.into()))?
.into(),
Expand Down

0 comments on commit c53d9a3

Please sign in to comment.