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!

don't leak internal error message to client

Blue Mousef5b615aa1a25
diff --git a/apps/production/src/project/project.controller.ts b/apps/production/src/project/project.controller.ts
index f19b7a181..a9dff6192 100644
--- a/apps/production/src/project/project.controller.ts
+++ b/apps/production/src/project/project.controller.ts
@@ -362,7 +362,9 @@ export class ProjectController {
return newProject
} catch (reason) {
- throw new BadRequestException(reason)
+ console.error('[ERROR] Failed to create a new project:')
+ console.error(reason)
+ throw new BadRequestException('Failed to create a new project')
}
}