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:
Thomas Trompette 2024-07-30 15:55:57 +02:00 committed by GitHub
parent 3a37dfc7d5
commit 68e3730be1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -5,7 +5,7 @@ import {
export const generateGraphQLErrorFromError = (error: Error) => {
const graphqlError = new BaseGraphQLError(
error.name,
error.message,
ErrorCode.INTERNAL_SERVER_ERROR,
);