mirror of
https://github.com/twentyhq/twenty.git
synced 2024-11-22 21:50:43 +03:00
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:
parent
3a37dfc7d5
commit
68e3730be1
@ -5,7 +5,7 @@ import {
|
||||
|
||||
export const generateGraphQLErrorFromError = (error: Error) => {
|
||||
const graphqlError = new BaseGraphQLError(
|
||||
error.name,
|
||||
error.message,
|
||||
ErrorCode.INTERNAL_SERVER_ERROR,
|
||||
);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user