Added better error catching...
This commit is contained in:
parent
78de2c8344
commit
a10f234a2a
5
index.js
5
index.js
|
@ -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 }))
|
||||||
|
|
Loading…
Reference in New Issue
Block a user