2
2
from .process import Process , shortname
3
3
from .load_tool import load_tool
4
4
from schema_salad import validate
5
+ from schema_salad .sourceline import indent
5
6
from .errors import WorkflowException
6
7
from .context import RuntimeContext , LoadingContext
7
8
from typing import (Any , Callable , Dict , Generator , Iterable , List ,
@@ -82,7 +83,7 @@ def __init__(self,
82
83
_logger .exception ("Validation exception" )
83
84
raise WorkflowException (
84
85
u"Tool definition %s failed validation:\n %s" %
85
- (toolpath_object ["run" ], validate . indent (str (vexc ))))
86
+ (toolpath_object ["run" ], indent (str (vexc ))))
86
87
87
88
def job (self ,
88
89
job_order , # type: Mapping[Text, Text]
@@ -107,7 +108,7 @@ def result(self,
107
108
_logger .exception ("Validation exception" )
108
109
raise WorkflowException (
109
110
u"Tool definition %s failed validation:\n %s" %
110
- (jobout ["runProcess" ], validate . indent (str (vexc ))))
111
+ (jobout ["runProcess" ], indent (str (vexc ))))
111
112
112
113
if "runInputs" in jobout :
113
114
runinputs = cast (MutableMapping [Text , Any ], jobout ["runInputs" ])
0 commit comments