Réécriture complète 4.0
Some checks failed
Build and Push Docker Image / build-and-push (push) Failing after 6m16s
Some checks failed
Build and Push Docker Image / build-and-push (push) Failing after 6m16s
This commit is contained in:
@@ -1,8 +1,6 @@
|
||||
import chalk from 'chalk'
|
||||
import { logConsoleError } from "@/utils/console"
|
||||
|
||||
export default {
|
||||
name: 'error',
|
||||
async execute(error: Error) {
|
||||
console.log(chalk.red('[Mongoose] An error occured with the database conenction :\n' + error))
|
||||
}
|
||||
}
|
||||
export const name = "error"
|
||||
export function execute(error: Error) {
|
||||
logConsoleError('mongoose', 'error', { message: error.message }, error)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user