aboutsummaryrefslogtreecommitdiffstats
path: root/pages/api/notes/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'pages/api/notes/index.js')
-rw-r--r--pages/api/notes/index.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/pages/api/notes/index.js b/pages/api/notes/index.js
index 2c53909..8530c53 100644
--- a/pages/api/notes/index.js
+++ b/pages/api/notes/index.js
@@ -40,6 +40,7 @@ export default withSession(async (req, res) => {
res.status(200).json(notes)
})
} catch (error) {
+ console.log(error)
res.status(400).json([])
}
break