mirror of
https://github.com/strapi/strapi.git
synced 2025-12-26 22:54:31 +00:00
Add a missing new keyword when trying to format the graphql errors
This commit is contained in:
parent
7576b81d1f
commit
d50519d2d6
@ -44,7 +44,7 @@ const formatGraphqlError = error => {
|
||||
|
||||
// Internal server error
|
||||
strapi.log.error(originalError);
|
||||
return ApolloError('Internal Server Error', 'INTERNAL_SERVER_ERROR');
|
||||
return new ApolloError('Internal Server Error', 'INTERNAL_SERVER_ERROR');
|
||||
};
|
||||
|
||||
module.exports = formatGraphqlError;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user