diff --git a/backend/src/controllers/codeSnapshot.controller.ts b/backend/src/controllers/codeSnapshot.controller.ts index 3ec714a..2ff49ec 100644 --- a/backend/src/controllers/codeSnapshot.controller.ts +++ b/backend/src/controllers/codeSnapshot.controller.ts @@ -19,7 +19,9 @@ export const saveSnapshotController = async (req: Request, res: Response) => { ) res.json({ success: true }); - } catch { + } + catch (err) { + console.error("SNAPSHOT ERROR:", err); res.status(500).json({ error: "Failed to save snapshot"}); } };