Fix base graphql error message (#6457)
Display error message instead of name <img width="762" alt="Capture d’écran 2024-07-30 à 15 51 07" src="https://github.com/user-attachments/assets/a6b49254-a99e-42fc-8704-089f38bf8e7b">
This commit is contained in:
@ -5,7 +5,7 @@ import {
|
|||||||
|
|
||||||
export const generateGraphQLErrorFromError = (error: Error) => {
|
export const generateGraphQLErrorFromError = (error: Error) => {
|
||||||
const graphqlError = new BaseGraphQLError(
|
const graphqlError = new BaseGraphQLError(
|
||||||
error.name,
|
error.message,
|
||||||
ErrorCode.INTERNAL_SERVER_ERROR,
|
ErrorCode.INTERNAL_SERVER_ERROR,
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user