Log variables error
This commit is contained in:
parent
18497903a3
commit
df176847c0
@ -94,11 +94,11 @@ export class BackendVariables {
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
await validateOrReject(this, validationOptions);
|
await validateOrReject(this, validationOptions);
|
||||||
} catch (error) {
|
} catch (error: any) {
|
||||||
if (process.env["NODE_ENV"] === "development") {
|
if (process.env["NODE_ENV"] === "development") {
|
||||||
throw error;
|
throw error;
|
||||||
}
|
}
|
||||||
throw new Error("Some env variables are required!");
|
throw new Error("Some env variables are required!", error);
|
||||||
}
|
}
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user