diff --git a/package-lock.json b/package-lock.json index 0c07fae..c8b0b74 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@athenna/common", - "version": "3.4.2", + "version": "3.4.3", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@athenna/common", - "version": "3.4.2", + "version": "3.4.3", "license": "MIT", "dependencies": { "@fastify/formbody": "^7.4.0", diff --git a/package.json b/package.json index e53a221..767a095 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@athenna/common", - "version": "3.4.2", + "version": "3.4.3", "description": "The Athenna common helpers to use in any Node.js ESM project.", "license": "MIT", "author": "João Lenon ", diff --git a/src/Helpers/Exception.ts b/src/Helpers/Exception.ts index 59d3317..c4f890d 100644 --- a/src/Helpers/Exception.ts +++ b/src/Helpers/Exception.ts @@ -101,10 +101,12 @@ export class Exception extends Error { const helpKey = Color.gray.bold.bgGreen(' HELP ') const title = Color.gray.bold.bgRed(` ${this.code || this.name} `) - this.message = `${title}\n\n${this.message}` + this.message = `${title}\n\n${Color.apply(this.message)}` if (this.help && this.help !== '') { - this.help = `${helpKey}\n\n ${Color.green(this.help)}\n\n ${separator}` + this.help = `${helpKey}\n\n ${Color.green( + Color.apply(this.help), + )}\n\n ${separator}` } else { this.message = this.message.concat(`\n\n${separator}`) }