From a10f234a2a2c1a49a6297b40157a0b29b01c0b55 Mon Sep 17 00:00:00 2001 From: BurnyLlama Date: Mon, 31 Jan 2022 20:03:04 +0100 Subject: [PATCH] Added better error catching... --- index.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index fe5a40a..9b6270a 100644 --- a/index.js +++ b/index.js @@ -13,7 +13,10 @@ await dbInit() .then( () => console.log("Connected to database!") ).catch( - err => console.log("Error occured!") && console.dir(err, { depth: null }) + err => { + console.log("Error occured!") + console.dir(err, { depth: null }) + } ) APP.use(express.urlencoded({ extended: true }))