22from .process import Process , shortname
33from .load_tool import load_tool
44from schema_salad import validate
5+ from schema_salad .sourceline import indent
56from .errors import WorkflowException
67from .context import RuntimeContext , LoadingContext
78from typing import (Any , Callable , Dict , Generator , Iterable , List ,
@@ -82,7 +83,7 @@ def __init__(self,
8283 _logger .exception ("Validation exception" )
8384 raise WorkflowException (
8485 u"Tool definition %s failed validation:\n %s" %
85- (toolpath_object ["run" ], validate . indent (str (vexc ))))
86+ (toolpath_object ["run" ], indent (str (vexc ))))
8687
8788 def job (self ,
8889 job_order , # type: Mapping[Text, Text]
@@ -107,7 +108,7 @@ def result(self,
107108 _logger .exception ("Validation exception" )
108109 raise WorkflowException (
109110 u"Tool definition %s failed validation:\n %s" %
110- (jobout ["runProcess" ], validate . indent (str (vexc ))))
111+ (jobout ["runProcess" ], indent (str (vexc ))))
111112
112113 if "runInputs" in jobout :
113114 runinputs = cast (MutableMapping [Text , Any ], jobout ["runInputs" ])
0 commit comments