Skip to content

Commit 75ef3a4

Browse files
author
Peter Amstutz
committed
Improve error message on mismatched scatter parameter.
1 parent 18603ab commit 75ef3a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cwltool/workflow.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -430,7 +430,7 @@ def __init__(self, toolpath_object, pos, **kwargs):
430430
inp_map = {i["id"]: i for i in inputparms}
431431
for s in scatter:
432432
if s not in inp_map:
433-
raise WorkflowException("Invalid Scatter parameter '%s'" % s)
433+
raise WorkflowException("Scatter parameter '%s' does not correspond to an input parameter of this step, inputs are %s" % (s, inp_map.keys()))
434434

435435
inp_map[s]["type"] = {"type": "array", "items": inp_map[s]["type"]}
436436

0 commit comments

Comments
 (0)