diff --git a/server/routes.ts b/server/routes.ts index afbc129..fcb1030 100644 --- a/server/routes.ts +++ b/server/routes.ts @@ -997,6 +997,7 @@ export async function registerRoutes(app: Express): Promise { res.status(201).json(token); } catch (error) { if (error instanceof z.ZodError) { + console.log("API Token Validation error details:", JSON.stringify(error.errors, null, 2)); res.status(400).json({ message: "Validation error", errors: error.errors }); } else { console.error("Error creating API token:", error);