Skip to content

Possible error message improvement #100

@HolQue

Description

@HolQue

In this expression a parameter does not exist:

"param" : "VAR-${variant_${list_variant_numbers}[${IAMNOTEXISTING}]}_MS-${milestone_${list_milestone_numbers}[${list_milestone_index}]} value"

JsonPreprocessor throws this exception:

'The variable '${list_variant_numbers}[${IAMNOTEXISTING}]' is not available!'

This is not really helpful. What exactly is not available? Is the index parameter not available? Is the index itself not available in the list? Is the list parameter not available?

If nested parameters are resolved recursively from innermost to outermost expression, I would expect, that the parser already stops at innermost expression, where ${IAMNOTEXISTING} is not existing.

The expected error message in this case is:

'The variable '${IAMNOTEXISTING}' is not available!'

Metadata

Metadata

Assignees

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions