Edit variables error
This commit is contained in:
parent
df176847c0
commit
4668fcb88f
@ -90,6 +90,8 @@ export class BackendVariables {
|
|||||||
this.ENV = process.env["ENV"]!;
|
this.ENV = process.env["ENV"]!;
|
||||||
}
|
}
|
||||||
public async validate(groups?: string[]) {
|
public async validate(groups?: string[]) {
|
||||||
|
console.log(this);
|
||||||
|
|
||||||
const validationOptions = groups ? { groups } : undefined;
|
const validationOptions = groups ? { groups } : undefined;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
@ -98,7 +100,9 @@ export class BackendVariables {
|
|||||||
if (process.env["NODE_ENV"] === "development") {
|
if (process.env["NODE_ENV"] === "development") {
|
||||||
throw error;
|
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;
|
return this;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user