mirror of
https://github.com/NuSkooler/enigma-bbs.git
synced 2025-07-27 21:16:09 +02:00
Log if a variable isn't found
This commit is contained in:
parent
60a1f14f6e
commit
992ee6056e
1 changed files with 2 additions and 1 deletions
|
@ -161,7 +161,8 @@ module.exports = class ConfigLoader {
|
||||||
|
|
||||||
let value = process.env[varName];
|
let value = process.env[varName];
|
||||||
if (!value) {
|
if (!value) {
|
||||||
return;
|
// console is about as good as we can do here
|
||||||
|
return console.info(`WARNING: environment variable "${varName}" from spec "${spec}" not found!`);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ('array' === array) {
|
if ('array' === array) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue