diff --git a/src/graphql-schema.js b/src/graphql-schema.js index 7d2a8ce5f..c298177c2 100644 --- a/src/graphql-schema.js +++ b/src/graphql-schema.js @@ -117,7 +117,7 @@ export const resolvers = { }) } session.close() - throw new Error('Incorrect username or password.') + throw new AuthenticationError('Incorrect username or password.') } session.close() } catch (error) {