Skip to content

[ 2374928 ] Error messages (41) #383

@HolQue

Description

@HolQue

The [import] tag requires a string (that is interpreted as file). Therefore the value type must be checked. This is not implemented and the current error handling is insufficient.

Examples:

"[import]" : 123
Error: 'argument of type 'int' is not iterable
"[import]" : [1,2,3]
Error: ''list' object has no attribute 'strip'
"[import]" : {"A" : 1, "B" : 2}
Error: ''dict' object has no attribute 'strip'
"values" : {"A" : 1, "B" : 2},
"[import]" : ${values}['A']
Error: 'File '%values%['A']' is not existing!'!

Expected error handling:

  1. Check value type, error if not a string
  2. Check existence of file, error if file does not exist
  3. Check file content, error in case of content related error

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions