Skip to content

Commit

Permalink
chore: remove status code
Browse files Browse the repository at this point in the history
  • Loading branch information
Benmuiruri committed Feb 17, 2025
1 parent 0949850 commit 096b04d
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/routes/authentication.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,7 @@ export default async function authentication(fastify: FastifyInstance) {

const getLoginErrorMessage = (error: unknown): string => {
if (error instanceof AuthError) {
console.error('Login error:', {
status: error.status,
message: error.errorMessage,
});
console.error('Login error:', error.message);
return error.errorMessage;
}

Expand Down

0 comments on commit 096b04d

Please sign in to comment.