common-workflow-language / cwltool

Common Workflow Language reference implementation
https://cwltool.readthedocs.io/
Apache License 2.0
335 stars 230 forks source link

Syntax error gives confusing error #686

Open gijzelaerr opened 6 years ago

gijzelaerr commented 6 years ago
Resolved 'multi.cwl' to 'file:///Users/gijs/Work/spiel/multi.cwl'
Tool definition failed validation:
("mapSubject '%s' value '%s' is not a dictand does not have a mapPredicate", 'out', None)
Tool definition failed validation:
("mapSubject '%s' value '%s' is not a dictand does not have a mapPredicate", 'out', None)

https://github.com/gijzelaerr/spiel/blob/e44c31146062b59147542f9d5004783943d08abf/multi.cwl

tetron commented 6 years ago

@gijzelaerr Looks like the error reporting itself is buggy.

However, in your file 41-63 need to be indented one level so they are under the "simulate" step

gijzelaerr commented 6 years ago

You are right, that solved the issue. But yes, this error could be more useful.