Skip to content

Commit 5adb3fb

Browse files
authored
--validate explicitly tells the user that a tool definition is valid (#571)
* --validate explicitly tells the user that a tool definition is valid * Better formatting for workflow checker warning.
1 parent 7eeaa9a commit 5adb3fb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

cwltool/main.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -898,6 +898,7 @@ def main(argsl=None, # type: List[str]
898898
return 0
899899

900900
if args.validate:
901+
_logger.info("Tool definition is valid")
901902
return 0
902903

903904
if args.pack:

cwltool/workflow.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -625,8 +625,7 @@ def static_checker(workflow_inputs, workflow_outputs, step_inputs, step_outputs)
625625
all_exception_msg = "\n".join(exception_msgs)
626626

627627
if warnings:
628-
_logger.warning("Workflow checker warning:")
629-
_logger.warning(all_warning_msg)
628+
_logger.warning("Workflow checker warning:\n%s" % all_warning_msg)
630629
if exceptions:
631630
raise validate.ValidationException(all_exception_msg)
632631

0 commit comments

Comments
 (0)