configorama 0.6.8 → 0.6.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/main.js +6 -1
package/package.json
CHANGED
package/src/main.js
CHANGED
|
@@ -633,8 +633,11 @@ class Configorama {
|
|
|
633
633
|
if (VERBOSE || showFoundVariables) {
|
|
634
634
|
// Use collectVariableMetadata to get variable info (DRY - don't duplicate logic)
|
|
635
635
|
const metadata = this.collectVariableMetadata()
|
|
636
|
+
/*
|
|
636
637
|
deepLog('metadata', metadata)
|
|
637
638
|
process.exit(1)
|
|
639
|
+
/** */
|
|
640
|
+
|
|
638
641
|
const variableData = metadata.variables
|
|
639
642
|
const varKeys = Object.keys(variableData)
|
|
640
643
|
|
|
@@ -769,7 +772,9 @@ class Configorama {
|
|
|
769
772
|
firstInstance.defaultValue = truncatedString
|
|
770
773
|
} else {
|
|
771
774
|
deepLog('Missing default var', firstInstance)
|
|
772
|
-
throw new Error(
|
|
775
|
+
throw new Error(
|
|
776
|
+
`Variable misconfiguration at ${firstInstance.variable}\n\n"${hasDotPropOrSelf[0].variable}" resolves to undefined value.\n`
|
|
777
|
+
)
|
|
773
778
|
}
|
|
774
779
|
}
|
|
775
780
|
//this.originalConfig[key] = undefined
|