mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-15 01:12:56 +03:00
Remove logging error (#708)
Ahem. V3_GIT_ORIGIN_REV_ID: ccb290c8c3fc6d68ed0485218185214674da9b3e
This commit is contained in:
parent
1c5008df7c
commit
247eebb118
@ -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 {
|
||||
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,
|
||||
|
Loading…
Reference in New Issue
Block a user