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 3
3
import os
4
4
import re
5
5
from types import LambdaType
6
+
6
7
from typing import List , Union , Optional , Callable
7
8
import WDL
8
9
@@ -447,6 +448,16 @@ def parse_command_tool_output(self, outp: WDL.Decl):
447
448
448
449
toolname = sys .argv [1 ]
449
450
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