From 57d9088c6cbc293a4ab01844ee68cd400cd0ca27 Mon Sep 17 00:00:00 2001 From: Gerald Michelant Date: Fri, 28 Dec 2018 22:17:28 -0500 Subject: [PATCH] throw new AuthenticationError on password error --- src/graphql-schema.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {