Remove logging error (#708)

Ahem.

V3_GIT_ORIGIN_REV_ID: ccb290c8c3fc6d68ed0485218185214674da9b3e
This commit is contained in:
Daniel Harvey 2024-06-12 10:25:20 +01:00 committed by hasura-bot
parent 1c5008df7c
commit 247eebb118

View File

@ -95,16 +95,13 @@ impl FieldError {
pub fn to_graphql_error(&self, path: Option<Vec<gql::http::PathSegment>>) -> GraphQLError {
let details = self.get_details();
match self {
Self::InternalError(_internal) => {
println!("{_internal}");
GraphQLError {
message: "internal error".into(),
path,
// Internal errors showing up in the API response is not desirable.
// Hence, extensions are masked for internal errors.
extensions: None,
}
}
Self::InternalError(_internal) => GraphQLError {
message: "internal error".into(),
path,
// Internal errors showing up in the API response is not desirable.
// Hence, extensions are masked for internal errors.
extensions: None,
},
e => GraphQLError {
message: e.to_string(),
path,