Skip to content

Commit 055d20c

Browse files
authored
Merge pull request #155 from common-workflow-language/cwltool-threadjoin
Ensure error stream is complete before reading error message
2 parents e580782 + d144a14 commit 055d20c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/main/java/org/commonwl/view/cwl/CWLTool.java

+1
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@ private String runCwltoolOnWorkflow(String argument, String workflowUrl) throws
117117
inputGobbler.join();
118118
return inputGobbler.getContent();
119119
} else {
120+
errorGobbler.join();
120121
throw new CWLValidationException(errorGobbler.getContent());
121122
}
122123
} catch (IOException|InterruptedException e) {

0 commit comments

Comments
 (0)