You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if ( !structKeyExists( moduleSettings, moduleName ) ) {
180
+
throw(
181
+
type ="ColdBoxDSL.InvalidDSL",
182
+
message ="The DSL provided was not valid: #arguments.definition.toString()#",
183
+
detail ="The module requested: #moduleName# does not exist in the loaded modules. Loaded modules are #structKeyList( moduleSettings )#"
184
+
);
185
+
}
186
+
187
+
if ( !structKeyExists( moduleSettings[ moduleName ], "settings" ) ) {
193
188
throw(
194
189
type ="ColdBoxDSL.InvalidDSL",
195
190
message ="The DSL provided was not valid: #arguments.definition.toString()#",
196
-
detail ="The module requested: #listLast( thisLocationKey, "@" )# does not exist in the loaded modules. Loaded modules are #structKeyList( moduleSettings )#"
191
+
detail ="The module requested: #moduleName# does not have any settings defined."
197
192
);
198
193
}
194
+
195
+
varsettingName=listFirst( thisLocationKey, "@" )
196
+
197
+
if ( !structKeyExists( moduleSettings[ moduleName ].settings, settingName ) ) {
198
+
throw(
199
+
type ="ColdBoxDSL.InvalidDSL",
200
+
message ="The DSL provided was not valid: #arguments.definition.toString()#",
201
+
detail ="The module requested: #moduleName# does not have the setting [#settingName#] defined. Available settings are: [#moduleSettings[ moduleName ].settings.keyList( ", " )#]"
0 commit comments