diff --git a/src/common/config/variables/Variables.ts b/src/common/config/variables/Variables.ts index 8778b561..3de8232d 100644 --- a/src/common/config/variables/Variables.ts +++ b/src/common/config/variables/Variables.ts @@ -90,6 +90,8 @@ export class BackendVariables { this.ENV = process.env["ENV"]!; } public async validate(groups?: string[]) { + console.log(this); + const validationOptions = groups ? { groups } : undefined; try { @@ -98,7 +100,9 @@ export class BackendVariables { if (process.env["NODE_ENV"] === "development") { throw error; } - throw new Error("Some env variables are required!", error); + console.error(error); + console.error(this); + throw new Error("Some env variables are required!"); } return this; }