From e3cd7917459480c6f71b615f63635edccf310d1e Mon Sep 17 00:00:00 2001 From: KS Jannette Date: Fri, 13 Feb 2026 11:41:38 -0500 Subject: [PATCH] cleanup --- backend/routes/notes.routes.js | 2 ++ frontend/src/main.tsx | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/backend/routes/notes.routes.js b/backend/routes/notes.routes.js index b8aa24c..b03e863 100644 --- a/backend/routes/notes.routes.js +++ b/backend/routes/notes.routes.js @@ -20,6 +20,7 @@ router.get('/', async (req, res) => { const notes = await loadNotes(); res.json(notes); } catch (err) { + console.error(`Error loading notes: ${err}`) res.status(500).json({ error: 'Failed to load notes' }); } }); @@ -30,6 +31,7 @@ router.post('/cluster', async (req, res) => { const clusters = await clusterNotes(notes); res.json(clusters); } catch (err) { + console.error(`Clustering failed: ${err}` ) res.status(500).json({ error: `Clustering failed: ${err}` }); } }); diff --git a/frontend/src/main.tsx b/frontend/src/main.tsx index 2a1ecb4..188b335 100644 --- a/frontend/src/main.tsx +++ b/frontend/src/main.tsx @@ -3,7 +3,7 @@ import { createRoot } from 'react-dom/client' import { QueryClient, QueryClientProvider } from '@tanstack/react-query'; import { BrowserRouter } from 'react-router-dom'; import './styles/index.css' -import App from './App.tsx' +import App from './App' const queryClient = new QueryClient();