Skip to content

📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!

throw proper error messages

Blue Mouse366c0eb5798f
diff --git a/apps/production/src/auth/auth.service.ts b/apps/production/src/auth/auth.service.ts
index e940c664d..7b7317b71 100644
--- a/apps/production/src/auth/auth.service.ts
+++ b/apps/production/src/auth/auth.service.ts
@@ -653,9 +653,7 @@ export class AuthService {
throw new BadRequestException('Google token is expired')
}
- throw new InternalServerErrorException(
- 'Something went wrong while authenticating user with Google',
- )
+ throw new InternalServerErrorException(error)
}
}
@@ -1027,9 +1025,7 @@ export class AuthService {
return await this.handleExistingUserGithub(user, headers, ip)
} catch (error) {
console.error(`[ERROR][AuthService -> authenticateGithub]: ${error}`)
- throw new InternalServerErrorException(
- 'Something went wrong while authenticating user with Github',
- )
+ throw new InternalServerErrorException(error)
}
}
}