Testing #72

Merged
KevinMidboe merged 23 commits from testing into master 2018-01-09 15:56:45 +00:00
Showing only changes of commit 625717f7ad - Show all commits

View File

@@ -27,6 +27,11 @@ class Config {
const field = new Field(this.fields[section][option])
if (field.value === '') {
const envField = process.env[[section.toUpperCase(), option.toUpperCase()].join('_')]
if (envField !== undefined && envField.length !== 0) { return envField }
}
if (field.value === undefined) {
throw new Error(`${section} => ${option} is empty.`);
}