Skip to content

Commit 73eb34c

Browse files
committed
fix: double error loggin
1 parent a73216f commit 73eb34c

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

api/src/auth/auth.controller.ts

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -119,20 +119,9 @@ export class AuthController {
119119
return res.redirect(redirectUrl);
120120
} catch (e) {
121121
if (e instanceof BadRequestException) {
122-
this.logger.error(
123-
`Error in FortyTwo callback: ${e.message}`,
124-
e.stack || String(e),
125-
);
126122
throw e;
127123
}
128124

129-
const errorMessage = e instanceof Error ? e.message : String(e);
130-
const errorStack = e instanceof Error ? e.stack || String(e) : String(e);
131-
this.logger.error(
132-
`Error in FortyTwo callback: ${errorMessage}`,
133-
errorStack,
134-
);
135-
136125
throw new BadRequestException(
137126
e instanceof Error
138127
? `Invalid state parameter: ${e.message}`

0 commit comments

Comments
 (0)