File tree Expand file tree Collapse file tree 1 file changed +14
-3
lines changed Expand file tree Collapse file tree 1 file changed +14
-3
lines changed Original file line number Diff line number Diff line change 33import os
44import re
55from types import LambdaType
6+
67from typing import List , Union , Optional , Callable
78import WDL
89
@@ -447,6 +448,16 @@ def parse_command_tool_output(self, outp: WDL.Decl):
447448
448449 toolname = sys .argv [1 ]
449450
450- tool = WdlParser .from_doc (toolname )
451-
452- tool .translate ("janis" )
451+ try :
452+ tool = WdlParser .from_doc (toolname )
453+ tool .translate ("janis" )
454+
455+ except WDL .Error .MultipleValidationErrors as err :
456+ for exc in err .exceptions :
457+ print (exc , file = sys .stderr )
458+ print (exc .pos , file = sys .stderr )
459+ print (exc .node , file = sys .stderr )
460+ except WDL .Error .ValidationError as exc :
461+ print (exc , file = sys .stderr )
462+ print (exc .pos , file = sys .stderr )
463+ print (exc .node , file = sys .stderr )
You can’t perform that action at this time.
0 commit comments