From df176847c0197f58b279c60577a06de9f0a6650c Mon Sep 17 00:00:00 2001 From: Vins Date: Tue, 25 Jul 2023 10:20:01 +0200 Subject: [PATCH] Log variables error --- src/common/config/variables/Variables.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; }