throw new AuthenticationError on password error

This commit is contained in:
Gerald Michelant 2018-12-28 22:17:28 -05:00
parent 0b623cf083
commit 57d9088c6c

View File

@ -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) {