Skip to content

Error messages (20) #318

@HolQue

Description

@HolQue

Previously this code

{
   ${testdict.subKey.subKey.subKey} : {"A" : 1},
   "subKey" : "B",
   ${testdict.subKey.subKey.subKey}[${subKey}] : "2"
}

caused

'Identified dynamic name of key '${testdict.subKey.subKey.subKey}[${subKey}]' that does not exist. But new keys can only be created based on hard code names.'

That's completely fine.

With latest changes of the JsonPreprocessor the error message changed to:

'Could not set parameter '${testdict.subKey.subKey.subKey}[${subKey}]' with value '2'! Reason: Key error 'B''

Why this change? This makes no sense. It has been decided to limit the "implicit creation" feature to hard coded key names. The usage of parameters is allowed only in case of the key referenced by this parameter, does exist already. The previous error message gives a really good explanation of this rule. The new error message is confusing only.

Please restore the previous one.

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions