diff --git a/src/common/config/variables/Variables.ts b/src/common/config/variables/Variables.ts index 2db58fb1..8778b561 100644 --- a/src/common/config/variables/Variables.ts +++ b/src/common/config/variables/Variables.ts @@ -94,11 +94,11 @@ export class BackendVariables { try { await validateOrReject(this, validationOptions); - } catch (error) { + } catch (error: any) { if (process.env["NODE_ENV"] === "development") { throw error; } - throw new Error("Some env variables are required!"); + throw new Error("Some env variables are required!", error); } return this; }