Added better error catching...

This commit is contained in:
BurnyLlama 2022-01-31 20:03:04 +01:00
parent 78de2c8344
commit a10f234a2a

View File

@ -13,7 +13,10 @@ await dbInit()
.then( .then(
() => console.log("Connected to database!") () => console.log("Connected to database!")
).catch( ).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 })) APP.use(express.urlencoded({ extended: true }))