Intégration MongoDB + Fix export et amp
This commit is contained in:
8
src/events/mongo/error.ts
Normal file
8
src/events/mongo/error.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
import chalk from 'chalk'
|
||||
|
||||
export default {
|
||||
name: 'error',
|
||||
async execute(error: Error) {
|
||||
console.log(chalk.red('[Mongoose] An error occured with the database conenction :\n' + error))
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user