From 4fcf154ba0e591d4821262771d92458f6b197c69 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jo=C3=A3o=20Lenon?= <lenonSec7@gmail.com>
Date: Thu, 28 Sep 2023 23:39:41 +0100
Subject: [PATCH] fix(exception): use message instead of this.message

---
 package-lock.json        | 16 ++++++++--------
 package.json             |  2 +-
 src/helpers/Exception.ts |  2 +-
 3 files changed, 10 insertions(+), 10 deletions(-)

diff --git a/package-lock.json b/package-lock.json
index 6145674..aa1505f 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1,12 +1,12 @@
 {
   "name": "@athenna/common",
-  "version": "4.15.4",
+  "version": "4.15.5",
   "lockfileVersion": 2,
   "requires": true,
   "packages": {
     "": {
       "name": "@athenna/common",
-      "version": "4.15.4",
+      "version": "4.15.5",
       "license": "MIT",
       "dependencies": {
         "@fastify/formbody": "^7.4.0",
@@ -4368,9 +4368,9 @@
       }
     },
     "node_modules/get-func-name": {
-      "version": "2.0.0",
-      "resolved": "https://registry.npmjs.org/get-func-name/-/get-func-name-2.0.0.tgz",
-      "integrity": "sha512-Hm0ixYtaSZ/V7C8FJrtZIuBBI+iSgL+1Aq82zSu8VQNB4S3Gk8e7Qs3VwBDJAhmRZcFqkl3tQu36g/Foh5I5ig==",
+      "version": "2.0.2",
+      "resolved": "https://registry.npmjs.org/get-func-name/-/get-func-name-2.0.2.tgz",
+      "integrity": "sha512-8vXOvuE167CtIc3OyItco7N/dpRtBbYOsPsXCz7X/PMnlGjYjSGuZJgM1Y7mmew7BKf9BqvLX2tnOVy1BBUsxQ==",
       "dev": true,
       "engines": {
         "node": "*"
@@ -12505,9 +12505,9 @@
       "dev": true
     },
     "get-func-name": {
-      "version": "2.0.0",
-      "resolved": "https://registry.npmjs.org/get-func-name/-/get-func-name-2.0.0.tgz",
-      "integrity": "sha512-Hm0ixYtaSZ/V7C8FJrtZIuBBI+iSgL+1Aq82zSu8VQNB4S3Gk8e7Qs3VwBDJAhmRZcFqkl3tQu36g/Foh5I5ig==",
+      "version": "2.0.2",
+      "resolved": "https://registry.npmjs.org/get-func-name/-/get-func-name-2.0.2.tgz",
+      "integrity": "sha512-8vXOvuE167CtIc3OyItco7N/dpRtBbYOsPsXCz7X/PMnlGjYjSGuZJgM1Y7mmew7BKf9BqvLX2tnOVy1BBUsxQ==",
       "dev": true
     },
     "get-intrinsic": {
diff --git a/package.json b/package.json
index 804c130..e04f320 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
 {
   "name": "@athenna/common",
-  "version": "4.15.4",
+  "version": "4.15.5",
   "description": "The Athenna common helpers to use in any Node.js ESM project.",
   "license": "MIT",
   "author": "João Lenon <lenon@athenna.io>",
diff --git a/src/helpers/Exception.ts b/src/helpers/Exception.ts
index 896495f..2b22046 100644
--- a/src/helpers/Exception.ts
+++ b/src/helpers/Exception.ts
@@ -102,7 +102,7 @@ export class Exception extends Error {
         Color.apply(this.help)
       )}\n\n  ${separator}`
     } else {
-      message = this.message.concat(`\n\n${separator}`)
+      message = message.concat(`\n\n${separator}`)
     }
 
     const pretty = await new Youch(